Description Usage Arguments Details Value
Function to plot connectivity matrices using ggplot2.
1 2 3 4 5 | plotCM.GG(dfr, x = "nursery area", y = "spawning area", z = "Pr(N|S)",
title = NULL, xLab = x, yLab = y, zLab = z, xMin = NULL,
xMax = NULL, yMin = NULL, yMax = NULL, zMin = NULL, zMax = NULL,
facetWrap = NULL, facetGrid = NULL, ncol = 4, reverseX = FALSE,
reverseY = FALSE, useGrad2 = FALSE, verbose = FALSE)
|
dfr |
- dataframe to plot |
x |
- column name for x values |
y |
- column name for y values |
z |
- column name for z values |
title |
- plot title |
xLab |
- x axis label |
yLab |
- y axis label |
zLab |
- z label |
xMin |
- x axis minimum |
xMax |
- x axis maximum |
yMin |
- y axis minimum |
yMax |
- y axis maximum |
zMin |
- z axis minimum |
zMax |
- z axis maximum |
facetWrap |
- formula for ggplot2::facet_wrap |
facetGrid |
- formula for ggplot2::facet_grid |
ncol |
- number of columns for ggplot2::facet_wrap |
reverseX |
- flag to reverse x axis |
reverseY |
- flag to reverse y axis |
useGrad2 |
- flag to use reshape2::scale_fill_gradient2 for fill axis |
verbose |
- flag (T/F) to print debugging info |
none.
a ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.