hrbrmstr / taucharts

:bar_chart: An R htmlwidget interface to the TauCharts javascript library
http://rpubs.com/hrbrmstr/taucharts
Other
65 stars 10 forks source link

get back to the trendline point #6

Closed timelyportfolio closed 9 years ago

timelyportfolio commented 9 years ago

Get trendlines plugged in. Also, there are some fixes/cleanup in the legend documentation.

tc <- tauchart(car_dat) %>%
  tau_point( "hp", c("euroEco","co2"), color = "euroEco" ) %>%
  tau_legend( ) %>%
  tau_tooltip( )

tc %>%
  tau_trendline( )  #using defaults

tc %>%
  #type does not seem to work as expected
  # so use models instead to change default type or order of dropdown
  tau_trendline( models = c( "logarithmic", "exponential" ) )

tc %>%
  # start with unclicked TREND LINE
  tau_trendline( showTrend = FALSE )

tc %>%
  #take the fun away from the user
  tau_trendline( showPanel = FALSE )