plot_per_mod {peRiodiCS}R Documentation

Plotting function for periodic curves model

Description

Plots graph of periodic curves with confidence intervals. Data should be included in the model.

Usage

plot_per_mod(Model, XvarName, Ylab = "Response", Xlab = "Covariate",
  Ylim = NULL, Xlim = NULL, Xmin = NULL, Xmax = NULL, Knots = NULL,
  Title = NULL, Vlines = NULL, Hlines = NULL, Cex.lab = NULL,
  Cex.main = NULL, Cex.axis = NULL, Axes = TRUE, Add = FALSE,
  Col = "black", PlotCI = TRUE, Smooth = FALSE, xLocation = 2)

Arguments

Model

The built model

XvarName

Name of the x variable in the dataset (column name)

Ylab

Label on vertical (y) axis

Xlab

Label on horizontal (x) axis

Ylim

Limits of y axis

Xlim

Limits of x axis

Xmin

The min X of data to be predicted (if Smooth)

Xmax

The max X of data to be predicted (if Smooth)

Knots

Locations of knots of the splines

Title

Title of the plot

Vlines

Where to plot vertical lines

Hlines

Where to plot horizontal lines

Cex.lab

Character expansion (aka "size of font") for the labels

Cex.main

Character expansion for main text

Cex.axis

Character expansion for the axis text

Axes

Plot axes

Add

Add to existing plot

Col

Color of the plotted lines

PlotCI

Plot confidence intervals

Smooth

Make the Xaxis values equidistant (and the curve smoother)

xLocation

If smooth FALSE, the location of the x term in model$x[, xLocation]


[Package peRiodiCS version 0.5.0 Index]