Learn R Programming

pse (version 0.3.4)

plotscatter: Produces a series of scatterplots from data

Description

Produces a series of scatterplots from data.

Usage

plotscatter(vars, res = NULL, index.data, index.res, add.lm, ylab = NULL, ...)
corPlot(...)

Arguments

vars
Either a data.frame consisting of the data to plot on the x axis, or an LHS object containing the data to be plot
res
A data.frame consisting of the model results to be plotted on the y axis, if vars is passed as a data.frame. If vars is an LHS object, this parameter is ignored.
index.data
The indices of the data columns to be plotted. Useful when plotting from LHS objects
index.res
The indices of the result columns to be plotted. Useful when plotting from LHS objects
add.lm
Boolean. Whether to include a simple linear model on the plots. Defaults to TRUE.
ylab
Label for the x axis. Uses the name provided in the res.names argument from the LHS function if left blank.
...
Additional parameters to pass to the lower level plotting functions

Examples

Run this code
myLHS <- LHS(model=function(x) x[,1]+x[,2]*x[,3], factors=3, N=20)
plotscatter(myLHS)

Run the code above in your browser using DataLab