View source: R/main-datautil.R
plot_data | R Documentation |
Vizualizing longitudinal data
plot_data(
data,
x_name = "age",
y_name = "y",
group_by = "id",
facet_by = NULL,
color_by = NULL,
highlight = NULL,
main = NULL,
sub = NULL
)
data |
A data frame. |
x_name |
Name of x-axis variable. |
y_name |
Name of the y-axis variable. |
group_by |
Name of grouping variable (must be a factor). |
facet_by |
Name of the faceting variable (must be a factor). |
color_by |
Name of coloring variable (must be a factor). |
highlight |
Value of category of the |
main |
main plot title |
sub |
plot subtitle |
a ggplot
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.