Visualize an lgpsim object (simulated data)
plot_sim(
simdata,
group_by = "id",
x_name = "age",
h_name = "h",
y_name = "y",
comp_idx = NULL,
color_by = NA,
verbose = TRUE,
...
)
an object of class lgpsim
grouping factor
name of x-axis variable
name of the signal in simdata$components
("h" or "f")
name of response variable
Possible index of a component to be shown. If this is NULL, the data and total signal are shown.
coloring factor
should some information be printed?
additional arguments to plot_api_g
or
plot_api_c
a ggplot
object