Description Usage Arguments Value
View source: R/mgsplot.scatter.R
create scatter plots
1 2 | mgsplot.scatter(dfIN, file, axisscale = "linear", colorpoints = FALSE,
cbin = FALSE, colorbins = c(-1, 0, 1))
|
dfIN: |
dataframe ["X","Y"], ["X","Y","Z"],["X","Y","facet_var"], or ["X","Y","Z",facet_var"]. Where "Z" is the color scale. Names of dataframe columns are used to label the axes, color scale, and facets. |
file: |
is the name of the png file that is generated. optional: |
axisscale: |
= 'linear'(default), can also use 'log10' |
color: |
logical = FALSE(default), = TRUE uses "Z" input to color points. |
cbin: |
logical = FALSE(default), = TRUE uses a binned color scale |
colorbins: |
=c(-1,0,1) which will be c(min, max, 0) sorted (default), can input any length vector to make bins of color |
ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.