scatter: Advanced scatter plots

View source: R/scatter.R

scatterR Documentation

Advanced scatter plots

Description

Various functions that display bi-variate data in different ways. The default presents the number of points falling into pixles of a 2D grid.

Usage

scatter(x, y, type = "heat", verbose = FALSE, ...)

Arguments

x

x-variable

y

y-variable

type

Type of scatter cplot c('heat','sunflower','hexbin'

verbose

TRUE for diagnosing the internals of the function.

breaks

('heat' option) Set the colour scaling.

ignorezero

('heat' option - default = TRUE) Zeros are blank.

log

('heat' option - default = FALSE) Use logarithmic colour scaling.

dig

('heat' option) Resolution in number of decimal points/digits.

fig

('heat' option) Figure region for the colour bar.

Details

The 'heat' type produces a heat map type display whereas 'sunflower' and 'hexbin' present alternative infographics. Scatter also takes arguments similar to plot such as 'xlim', 'ylim', 'main', 'sub', 'xlab', and 'ylab.

Value

Graphics and visualisation only.

Author(s)

Kajsa M. Parding and Rasmus E. Benestad

See Also

vis,map,plot

Examples


scatter(rnorm(10000),rnorm(10000),dig=1,log=TRUE)
scatter(rnorm(10000),rnorm(10000),type='sunflower',petalsize=7,dx=NULL,dy=NULL,
                              xgrid=NULL,ygrid=NULL,xlim=NULL,ylim=NULL,
                              xlab=NULL,ylab=NULL,main=NULL,leg=TRUE,rotate=TRUE,
                              alpha=0.6,leg.loc=2,new=TRUE, verbose=FALSE)
scatter(rnorm(10000),rnorm(10000),type='hexbin',new=TRUE,Nmax=NULL,
                           dx=NULL,dy=NULL,xgrid=NULL,ygrid=NULL,
                           xlim=NULL,ylim=NULL,
                           xlab=NULL,ylab=NULL,main=NULL,
                           leg=TRUE,col='blue',border='white',
                           colmap='heat.colors',
                           scale.col=TRUE,scale.size=FALSE, verbose=FALSE)


metno/esd documentation built on April 29, 2024, 3:34 p.m.