scatter | R Documentation |
Various functions that display bi-variate data in different ways. The default presents the number of points falling into pixles of a 2D grid.
scatter(x, y, type = "heat", verbose = FALSE, ...)
x |
x-variable |
y |
y-variable |
type |
Type of scatter cplot |
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. |
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.
Graphics and visualisation only.
Kajsa M. Parding and Rasmus E. Benestad
vis
,map
,plot
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.