Description Usage Arguments Value Examples
View source: R/scatter_heatmap.R
Function to plot a scatter plot where each point is coloured by its 2-dimensional density.
1 2 3 4 5 6 7 8 9 10 11 | scatter_heatmap(
xvalues,
yvalues,
xlabel = "x",
ylabel = "y",
xlim = NULL,
ylim = NULL,
alphaval = 1,
colourPal = "inferno",
suckInVals = T
)
|
xvalues |
X values |
yvalues |
Y values |
xlabel |
X axis label |
ylabel |
Y axis label |
xlim |
Vector including limits of the x axis |
ylim |
Vector including limits of the x axis |
alphaval |
The transparency of the points |
colourPal |
The colour palette name from viridis to use - default is Inferno |
suckInVals |
Points beyond the limits will be sucked in to the edge values to depict that there exists more beyond the edge of the plot. Default is TRUE. |
Returns the ggplot2 plot
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.