View source: R/functions_util.R
| plot_profiles_selected | R Documentation | 
plot_profiles_selected
plot_profiles_selected( profile_dt, qtall_vars, id_to_plot, color_mapping = NULL )
profile_dt | 
 a tidy data.table containing profile data. variable names are id, tall_var, wide_var, x, y.  | 
qtall_vars | 
 character vector of tall_vars to show data for.  | 
id_to_plot | 
 character vector of ids to show data for.  | 
color_mapping | 
 color_mapping for wide_vars.  | 
a ggplot
data(profile_dt)
plot_profiles_selected(profile_dt,
    qtall_vars = unique(profile_dt$tall_var)[1:2],
    id_to_plot = unique(profile_dt$id)[1:3]) +
    theme(panel.spacing = unit(.04, "npc"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.