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,
  ...
)

Arguments

simdata

an object of class lgpsim

group_by

grouping factor

x_name

name of x-axis variable

h_name

name of the signal in simdata$components ("h" or "f")

y_name

name of response variable

comp_idx

Possible index of a component to be shown. If this is NULL, the data and total signal are shown.

color_by

coloring factor

verbose

should some information be printed?

...

additional arguments to plot_api_g or plot_api_c

Value

a ggplot object