Description Usage Arguments Value Examples
This function overrides default print method for tidycharts and prints them on the viewer pane in RStudio or as output in knitr.
1 2 |
x |
object of class tidychart to display |
... |
arguments passed to 'SVGrenderer' function |
Invisibly returns the object of the tidychart class
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # simply calling a plotting function will result in showing the chart
bar_chart(
data = data.frame(
cat = c('a', 'b', 'c'),
series = c(12,15,16)),
cat = 'cat',
series = 'series')
# result of the plotting function can also be assigned
barchart <- bar_chart(
data = data.frame(
cat = c('a', 'b', 'c'),
series = c(12,15,16)),
cat = 'cat',
series = 'series')
# and explicitly printed
print(barchart)
# or implicitly printed
barchart
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.