plot_smooths {clustra}R Documentation

plot_smooths

Description

Plots data and smooths from clustra output or internally from within start_groups()

Usage

plot_smooths(
  data,
  fits = NULL,
  max.data = 1e+05,
  select.data = NULL,
  group = "group",
  ...
)

Arguments

data

The data. If after clustra run, it includes resulting clusters as group.

fits

The tps component of clustra output or internal start_groups fits. If fits are supplied and select.data is NULL, the data is colored by clusters. If NULL, or if select.data is not NULL, the data is black points.

max.data

The maximum number of data points to plot. If zero, no points are plotted (overrides select.data). Use Inf value to plot all points.

select.data

Either NULL or a list of length k, each element a data.frame (like data) with time and response components. The select.data points will be highlighted with cluster colors on the plot. This is used internally in the start_groups function to show the selected starting points. In this case, also the fits parameter can contain TPS fits to the starting points.

group

Character variable name in data to color the clusters. A NULL will produce a b&w point plot.

...

Other parameters to plot function, such as xlim or ylim axis limits.


[Package clustra version 0.2.1 Index]