scatterplot | R Documentation |
Takes bivariate data with (correlated) uncertainties as input and produces a scatter plot with error ellipses or crosses as output. (optionally) displays the linear fit on this diagram, and can show a third variable as a colour scale.
scatterplot(
xy,
oerr = 3,
show.numbers = FALSE,
show.ellipses = 1,
levels = NA,
clabel = "",
ellipse.fill = c("#00FF0080", "#FF000080"),
ellipse.stroke = "black",
fit = NULL,
add = FALSE,
empty = FALSE,
ci.col = "gray80",
line.col = "black",
lwd = 1,
hide = NULL,
omit = NULL,
omit.fill = NA,
omit.stroke = "grey",
addcolourbar = TRUE,
bg,
cex,
xlim = NULL,
ylim = NULL,
xlab,
ylab,
asp = NA,
log = "",
taxis = FALSE,
box = !taxis,
xaxt = ifelse(taxis, "n", "s"),
...
)
xy |
matrix with columns |
oerr |
indicates whether the analytical uncertainties of the output are reported as:
|
show.numbers |
logical flag ( |
show.ellipses |
show the data as:
|
levels |
a vector with additional values to be displayed as different background colours within the error ellipses. |
clabel |
label for the colour scale |
ellipse.fill |
Fill colour for the error ellipses. This can either be a single colour or multiple colours to form a colour ramp. Examples: a single colour: multiple colours: a colour palette: a reversed palette: For empty ellipses, set |
ellipse.stroke |
the stroke colour for the error
ellipses. Follows the same formatting guidelines as
|
fit |
the output of |
add |
if |
empty |
set up an empty plot with the right axis limits to fit the data |
ci.col |
the fill colour for the confidence interval of the intercept and slope. |
line.col |
colour of the regression line |
lwd |
line width of the regression line |
hide |
vector with indices of aliquots that should be removed from the plot. |
omit |
vector with indices of aliquots that should be plotted but omitted from the isochron age calculation. |
omit.fill |
fill colour that should be used for the omitted aliquots. |
omit.stroke |
stroke colour that should be used for the omitted aliquots. |
addcolourbar |
add a colour bar to display the colours used to
|
bg |
background colour for the plot symbols (only used if
|
cex |
plot symbol magnification. |
xlim |
(optional) two-element vector with the x-axis limits |
ylim |
(optional) two-element vector with the y-axis limits |
xlab |
(optional) x-axis label (only used when
|
ylab |
(optional) y-axis label (only used when
|
asp |
the y/x aspect ratio, see ‘plot.window’. |
log |
same as the eponymous argument to the generic
|
taxis |
logical. If |
box |
logical. If |
xaxt |
see |
... |
optional arguments to format the points and text. |
X <- c(1.550,12.395,20.445,20.435,20.610,24.900,
28.530,50.540,51.595,86.51,106.40,157.35)
Y <- c(.7268,.7809,.8200,.8116,.8160,.8302,
.8642,.9534,.9617,1.105,1.230,1.440)
sX <- X*0.02
sY <- Y*0.01
dat <- cbind(X,sX,Y,sY)
scatterplot(dat,fit=york(dat),show.ellipses=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.