Description Usage Arguments Examples
A scatterplot with color gradient and color legend. Modified from: http://stackoverflow.com/questions/20127282/r-color-scatterplot-points-by-col-value-with-legend
1 2 3 4 5 6 7 8 | wscatter.fill(df2col = cbind(A = rnorm(100), B = rnorm(100)), ..., color,
xlim = range(df2col[, 1]), ylim = range(df2col[, 2]),
zlim = range(color), nlevels = 20, pch = 21, cex = 1,
plotname = substitute(df2col), plot.title = plotname, plot.axes,
key.title, key.axes, asp = NA, xaxs = "i", yaxs = "i", las = 1,
axes = TRUE, frame.plot = axes, xlb, ylb,
savefile = UnlessSpec("b.save.wplots"), w = UnlessSpec("b.defSize", 7),
h = w, incrBottMarginBy = 0, mdlink = ww.set.mdlink())
|
... |
Pass any other parameter of the corresponding plotting function (most of them should work). |
color |
Filling color of the symbols |
xlim |
Manually set the range of canvas in X dimension |
zlim |
Manually set the range of colors numbers (Z dimension) |
nlevels |
Number of steps in the color gradient |
pch |
Define the symbol for each data point. A number [0-25] or any string between ""-s. |
cex |
Size of the symbols |
plotname |
The name of the file saved. |
plot.title |
The title of the plot. |
plot.axes |
Draw axis ticks |
key.title |
... |
key.axes |
... |
asp |
numeric, giving the aspect ratio y/x. See help('plot.window'). |
xaxs |
The style of axis interval calculation to be used for the X-axis. See help('par'). |
yaxs |
The style of axis interval calculation to be used for the X-axis. See help('par'). |
las |
numeric in 0, 1, 2, 3; the style of axis labels. See help('par'). |
axes |
Draw axes and box |
frame.plot |
No description. |
savefile |
Save plot as pdf in OutDir, TRUE by default. |
w |
Width of the saved pdf image, in inches. |
h |
Height of the saved pdf image, in inches. |
incrBottMarginBy |
Increase the blank space at the bottom of the plot. Use if labels do not fit on the plot. |
mdlink |
Insert a .pdf and a .png image link in the markdown report, set by "path_of_report". |
x |
X variable |
y |
Y variable |
ylimManually |
set the range of canvas in Y dimension |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.