scatterPlot: Scatter plot

scatterPlotR Documentation

Scatter plot

Description

Draws a scatterplot of data points with regression fit

Usage

scatterPlot(x, y, z, main, sub, xlab, ylab, col, fit, cor, legend, file, ...)

Arguments

x

numeric vector of values

y

numeric vector of values

z

character or numeric vector giving the group memberships of elements in x an y

main

character string for main title

sub

character string for sub title

xlab

character string for x axis label

ylab

character string for y axis label

col

character string giving the colors of the dots if z is missing

fit

list of two giving the type of fitting

  1. add: logical to add or not the regression line

  2. type: character string specifying the type of regression 'lm' or 'lqs'

cor

list of two giving the placement of correlation coefficient and P-value

  1. add: logical to add or not the correlation coefficient

  2. pos: character string for placement 'bottomright' or 'topleft'

legend

list of three giving the necessary information for the legend

  1. add: logical to add or not the legend

  2. pos: character string for placement 'bottomright' or 'topleft'

  3. text: vector of characters for display

file

character string specifying the path and file name of the output pdf

...

addition arguments that may be passed to plot

Value

None

Author(s)


David Brown
brownd7@mskcc.org


ndbrown6/CNtu documentation built on March 16, 2023, 1:01 a.m.