plotseries: Create plot series object based on data, plot type and...

Description Usage Arguments

View source: R/plotseries.R

Description

The 'plotseries' object contains all necessary paremeters to create main plots from data values, including values for x and y, correct handling of excluded rows and columns, color grouping (if any), limits and labels.

If both 'col' and 'cgroup' are specified, 'cgroup' will be ignored.

Labels can be either provided by user or generated automatically based on values, names or indices of data rows and columns. If series is made for scatter plot 'type="p"' then labels are required for each row of the original dataset. Otherwise (for line, bar and errobar plot) labels correspond to data columns (variables).

The object has the following plotting methods once created: plotScatter plotLines plotBars plotDensity plotErrorbars

Usage

1
2
3
4
5
6
7
8
9
plotseries(
  data,
  type,
  cgroup = NULL,
  col = NULL,
  opacity = 1,
  colmap = "default",
  labels = NULL
)

Arguments

data

data to make the plot for (vector, matrix or data frame).

type

type of the plot.

cgroup

vector with values used to create a color grouping of the series instances.

col

color to show the series on plot with (user defined).

opacity

opacity of the colors (between 0 and 1).

colmap

colormap name to generate color/colors if they are not specified by user. See link{mdaplot.getColors} for details.

labels

either vector with labels for the series instances or string ("names", "values", or "indices") if labels should be generated automatically.


mdatools documentation built on Sept. 13, 2021, 9:07 a.m.