scatter.plot: Quick Scatterplot Function for Exploratory Analyses

Description Usage Arguments Examples

View source: R/scatter.plot.R

Description

Function to make many scatterplots for exploratory analyses. Includes Pearson correlation and sample size in the plot title.

Usage

1
2
3
scatter.plot(tdat, yname, xname, long.yname = NULL, long.xname = NULL,
  showr = TRUE, use.pch = 1, use.cex = 1, jitx = 0, jity = 0,
  addtomain = NULL, cex.xylab = 1.5, cex.title = 1.2, ...)

Arguments

yname

name of variable from tdat to plot on y-axis

xname

name of variable from tdat to plot on x-axis

long.yname

character string to be put on y-axis

long.xname

character string to be put on x-axis

showr

TRUE means include correlation and n on plot heading

use.pch

pch symbol to be used in plot

use.cex

cex (character expansion) for plotting symbols

jitx

factor component of jitter(x,factor=jitx)

jity

factor component of jitter(y,factor=jity)

addtomain

additional text for main title (if showr=FALSE, this is the entire title)

cex.xylab

cex for x and y axes

cex.title

cex for title (and correlation, if shown)

...

Other graphical parameters sent to plot

Examples

1
2
test.dat<-data.frame(x=rnorm(10),y=rbinom(10,2,.5))
scatter.plot(test.dat,yname="y",xname="x")

mathykathy26/kagRfun documentation built on Nov. 18, 2017, 5:14 p.m.