scatPlot: Bivariate Scatterplot

Description Usage Arguments Value Examples

View source: R/scatPlot.R

Description

Bivariate Scatterplot

Usage

1
2
3
4
scatPlot(formula, data = NULL, xlab = "default", ylab = "default",
  col = "blues", smooth = FALSE, smoother = FALSE, regline = TRUE,
  font = "serif", inset = 0.05, legend.pos = "topright",
  box.lty = 1, box.cex = 0.75)

Arguments

formula

a formula of the form y ~ x

data

a data frame if y and x are not vectors in the global environment or subsets of a data frame

xlab

the x axis label

ylab

the y axis label

col

color scheme. one of "blue" (the default), "red", "green", or "purple"

smooth

should a smoother line be added. Defaults to FALSE.

smoother

If FALSE the data are represented as points. If TRUE, a smooth density is used. The latter is useful for large sample sizes.

regline

should a regression line be added? Defaults to TRUE, with both robust and ordinary least squares lines being plotted.

font

Defaults to "serif"

inset

the inset of the legend. Defaults to 0.05

legend.pos

the legend position. Defaults to "topright"

box.lty

the linetype of the legend box outline

box.cex

the size of the legend

Value

a plot

Examples

1
scatPlot(Sepal.Width ~ Petal.Length, iris, xlab = "Sepal Width", ylab = "Petal Length", col = "purple")

abnormally-distributed/Bayezilla documentation built on Oct. 31, 2019, 1:57 a.m.