View source: R/draw_small_multiples_line_plot.R
draw_small_multiples_line_plot | R Documentation |
Draws a Small Multiples Line Plot
draw_small_multiples_line_plot(
data,
x_axis_var,
y_axis_var,
grouping_var,
color_var,
faceting_var_1,
faceting_var_2,
plot_max_values = FALSE,
unique_color_by_group = FALSE,
size = 0.7,
alpha = 0.4,
interactive = TRUE,
analysis_desc_label = NULL,
x_axis_label = NULL,
y_axis_label = NULL,
n_breaks_x_axis = 10,
n_breaks_y_axis = 10,
accuracy = 0.01
)
data |
Input dataset to be plotted (required) |
x_axis_var |
Variable to be plotted on x axis (required) |
y_axis_var |
Variable to be plotted on x axis (required) |
grouping_var |
Set grouping variable (required) |
color_var |
Set variable to color by (optional) |
faceting_var_1 |
Set first faceting variable (optional) |
faceting_var_2 |
Set second faceting variable (optional) |
plot_max_values |
Highlights maximum values per group. By default, it is set to FALSE (optional) |
unique_color_by_group |
Set whether to display each group in a unique color. By default, it is set to FALSE (optional) |
size |
Set line size. By default, it is set to 0.7 (optional) |
alpha |
Set transparency. By default, it is set to 0.4 (optional) |
interactive |
set plot interactivity. By default, it is set to TRUE (optional) |
analysis_desc_label |
Label (subtitle) for analysis description. By default, it is set to NULL (optional) |
x_axis_label |
Label for x axis. By default, it is set to display x axis column name (optional) |
y_axis_label |
Label for y axis. By default, it is set to display y axis column name (optional) |
n_breaks_x_axis |
Set number of breaks on X axis. By default, it is set to 10 (optional) |
n_breaks_y_axis |
Set number of breaks on Y axis. By default, it is set to 10 (optional) |
accuracy |
Set number of decimal places to be displayed on X and Y axes. Examples: 0.1 - one decimal place, 0.01 - two decimal places, 0.001 - three decimal places etc. By default, it is set to 0.01 (optional) |
A 'ggplot' or 'plotly' object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.