knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
taucharts is an R htmlwidget interface to the TauCharts javascript library
Take a look at the TODO list and chip in!
Right now, you can make & customize (including manual color scales & ordered factors + legends + tooltips + trendlines):
Composite plots are on the road map for support but not in the R package yet.
Have a look on RPubs to see what taucharts
can do!
The following functions are implemented:
tauchart
: Create a new TauCharttau_line
: Create a TauCharts line charttau_point
: Create a TauCharts scatterplottau_bar
: Create a TauCharts bar chart (horizontal or vertical)tau_stacked_bar
: Create a TauCharts stacked bar chart (veritcal only)tau_guide_gridlines
: Control showing of axis gridlinestau_guide_padding
: Set overall chart paddingtau_guide_x
: Control x-axis padding, label, scale & tick formattau_guide_y
: Control y-axis padding, label, scale & tick formattau_legend
: Add a TauCharts legendtau_tooltip
: Add a TauCharts tooltiptau_trendline
: Add a TauCharts trendlinerun_tau_app
: Run a built-in example Shiny apptau_tasks
: Add post-render JavaScript tasks to tauchartstau_add_css_rule
: Add a CSS rule to the rendered htmlwidgettau_set_font
: Set font-family
for the chartas_tauchart
: Turn a simple (single-geom) ggplot plot into an tauchart objecttau_title
: Add a title to the tauchart plotwith many color palette options:
tau_color_manual
: Specify the colors used in the chartstau_color_brewer
: Use the ColorBrewer palette in the chartstau_color_economist
: Use the "Economist" palette used in the chartstau_color_few
: Use the "Few" palette used in the chartstau_color_highcharts
: Use the HighchartsJS palette used in the chartstau_color_manual
: Specify the colors used in the chartstau_color_tableau
: Use the Tableau palette in the chartstau_color_wsj
: Use the "Wall Street Journal" palette used in the chartsThe following datasets are included:
cars_data
: statistics on cars released from 1997 through 2013 (a data frame with 135 rows and 7 variables)tau_title
as_tauchart
& updated TauCharts JS libtau_line
?tau_set_font
)?tau_add_css_rule
(add CSS rules to a chart)?tau_tasks
(add JavaScript to a chart)?run_tau_app
for more infodevtools::install_github("hrbrmstr/taucharts")
library(taucharts) # current verison packageVersion("taucharts")
library(testthat) date() test_dir("tests/testthat", reporter = SummaryReporter)
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.