After creating your own ggplot, you may want to separate a plot by groups into two plots. This is done by faceting.
1 |
gg |
A ggplot object |
facet_col |
The data frame column by which to group the data |
ncol |
The number of columns to have plots |
nrow |
The number of rows of plots |
scales |
Do you want each plot to have the same measure scale ("fixed") or each to have their own scale ("free") |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.