splot | R Documentation |
convenient formatted scatter plot with additional features as defaults, useful for fast interactive data inspection / exploration of large datasets (eg 1000s of points): - autoamtic setting of solid dots (pch = 19) - transparent colors for over plotting - automatic setting of x and y limits parametrized by "p.outlier" - quick setting of jiggle / jitter on plot - automatic fitting and plotting of regression line (fit = FALSE)
splot(
x,
y,
cex = 0.4,
poutlier = 0.01,
col = alpha("black", 0.3),
intercept = TRUE,
xlim = quantile(x, na.rm = T, prob = c(poutlier[1], 1 - poutlier[length(poutlier)])),
ylim = quantile(y, na.rm = T, prob = c(poutlier[1], 1 - poutlier[length(poutlier)])),
label = NULL,
cex.label = 1,
adj.label = c(1, 0.5),
col.label = "black",
log = "",
jiggle = NULL,
fit = FALSE,
col.fit = "blue",
cex.fit = 1,
square = FALSE,
pch = 19,
...
)
x |
numeric vector of x data |
y |
numeric vector y data |
cex |
character inspection |
poutlier |
numeric value between 0 and 1 specifying quantile threshold of outliers to remove (=0.01) |
col |
character vector color (=alpha('black', 0.3)) |
xlim |
length 2 numeric vector specifying x limits (=quantile(x, na.rm = T, prob = c(poutlier[1], 1-poutlier[length(poutlier)]))) |
ylim |
length 2 numeric vector specifying y limits (=quantile(y, na.rm = T, prob = c(poutlier[1], 1-poutlier[length(poutlier)]))) |
log |
standard plot log string |
jiggle |
numeric value between 0 and 1 specifying what percentage of plot area to jiggle each point (useful for overplotting) (= NULL) |
fit |
logical flag whether to fit a linear regression line to the data (=FALSE) |
col.fit |
character specifying color of linear regression fit (='blue') |
cex.fit |
character specifying size of text associated with linear regerssion line (=1) |
square |
logical flag whether to make square plot |
pch |
pch |
... |
... |
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.