plotdotscolor: Quick scatter plot with points colored by a 3rd variable

Description Usage Arguments Value See Also Examples

View source: R/plotdotscolor.R

Description

Quick scatter plot with points colored by a 3rd variable

Usage

1
2
plotdotscolor(x, y, colorvar, palette = c("red", "orange", "yellow", "green",
  "blue"), breaks = 50, pch = 19, alpha = 0.5, add = F, ...)

Arguments

colorvar

a numeric vector for the color gradient

breaks

numeric value of how many braks are wanted for the color palette

pch

what shape of points is wanted. default 19

alpha

what transparency of dots is wanted

numeric1

a numeric vector of group 1

numeric2

a numeric vector of group 2

Value

A scatter plot from base plot with points colored by the rank of a given variable

See Also

ggdotscolor

Examples

1
2
3
4
x=rnorm(n = 100,mean = 1,sd = 1)
y=rnorm(n = 100,mean = 2,sd = 1)
z=rnorm(n = 100,mean = 3,sd = 1)
plotwithcolors(x=x,y=y,colorvar=z)

MoisesExpositoAlonso/moiR documentation built on Dec. 24, 2021, 10:12 p.m.