ggmatplot | R Documentation |
Creates plots of matrices like graphics::matplot()
but uses ggplot2,
defaults to drawing lines, and can specify a column to use for the
x-axis.
ggmatplot(x, x_axis_column = NULL, n_colors = 6, unique_rows = TRUE)
x |
A matrix. |
x_axis_column |
Index (number) of the column to plot for the x-axis.
Defaults to |
n_colors |
Number of colors to cycle through. Defaults to 6. |
unique_rows |
Whether to work first take the unique rows of the matrix.
Defaults to |
a ggplot2 plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.