join_charts: Join SVG charts.

Description Usage Arguments Value Examples

View source: R/join_charts.R

Description

This function first populates each place in the first row, then columns in the second row.

Usage

1
2
3
4
5
6
join_charts(
  ...,
  nrows = max(length(list(...)), length(list_of_plots)),
  ncols = 1,
  list_of_plots = NULL
)

Arguments

...

multiple character vectors with SVG content

nrows

number of rows of plots in joint plot, default is set to number of plots

ncols

number of columns of plots in joint plot, default is set to 1

list_of_plots

optional list of plots to join. Use exclusively ... params or list_of_plots. Names of list entries will be plotted as titles of the plots

Value

object of class tidychart with a character vector containing SVG elements

Examples

1
2
3
4
5
6
7
8
9
  df <- data.frame(
   mon = month.abb[1:6],
   values = rnorm(6)
  )

join_charts(
  column_chart(df, x = 'mon', series = 'values'),
  column_chart(df, x = 'mon', series = 'values')
)

tidycharts documentation built on Jan. 18, 2022, 5:07 p.m.