smoothScatterJam | R Documentation |
Produce smooth scatter plot, a helper function called by
plotSmoothScatter()
.
smoothScatterJam(
x,
y = NULL,
nbin = 256,
bandwidth,
colramp = colorRampPalette(c("white", "lightblue", "blue", "orange", "orangered2")),
nrpoints = 100,
pch = ".",
cex = 1,
col = "black",
transformation = function(x) x^0.25,
postPlotHook = box,
xlab = NULL,
ylab = NULL,
xlim,
ylim,
add = FALSE,
xaxs = par("xaxs"),
yaxs = par("yaxs"),
xaxt = par("xaxt"),
yaxt = par("yaxt"),
useRaster = NULL,
...
)
x |
|
y |
|
nbin |
|
bandwidth |
|
colramp |
|
nrpoints |
|
pch |
point shape used when |
cex |
|
col |
|
transformation |
|
postPlotHook |
is |
xlab |
|
ylab |
|
xlim |
|
ylim |
|
add |
|
xaxs |
|
yaxs |
|
xaxt |
|
yaxt |
|
useRaster |
|
... |
additional arguments are passed to |
For general purposes, use plotSmoothScatter()
as a replacement
for graphics::smoothScatter()
, which produces better default
settings for pixel size and density bandwidth.
This function is only necessary in order to override the
graphics::smoothScatter()
function which calls
graphics::image.default()
.
Instead, this function calls imageDefault()
which is required
in order to utilize custom raster image scaling, particularly important
when the x- and y-axis ranges are not similar, e.g. where the x-axis spans
10 units, but the y-axis spans 10,000 units.
graphics::smoothScatter()
Other jam plot functions:
adjustAxisLabelMargins()
,
coordPresets()
,
decideMfrow()
,
drawLabels()
,
getPlotAspect()
,
groupedAxis()
,
imageByColors()
,
imageDefault()
,
minorLogTicksAxis()
,
nullPlot()
,
plotPolygonDensity()
,
plotRidges()
,
plotSmoothScatter()
,
shadowText_options()
,
shadowText()
,
showColors()
,
sqrtAxis()
,
usrBox()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.