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

Description Usage Arguments Value See Also Examples

View source: R/ggdotscolor.R

Description

Quick scatter plot with points colored by a 3rd variable

Usage

1
2
3
ggdotscolor(x, y, varcol = NULL, ylab = deparse(substitute(y)),
  xlab = deparse(substitute(x)), collab = deparse(substitute(varcol)),
  mycolors = brewer.pal(10, name = "RdBu"), contrast = 0, ...)

Arguments

x

a numeric vector of group 1

y

a numeric vector of group 2

varcol

either a numeric vector (continuous scale plotting) or factor variable (discrete plotting)

data

A dataset with 3 columns. It is assumed that 1 is x, 2 is y, 3 is varcol. This substitutes the use of x, y and varcol.

Value

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

See Also

ggplot_world_map

Examples

1
2
3
4
x=rnomr(1,1,100)
y=rnorm(1,2,100)
x=rnorm(1,3,100)
ggdotscolor(x=x,y=y,colorvar=z)

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