Description Usage Arguments Value Examples
View source: R/ggplot2_theme.R
Add gridding, arrows, and plotting theme for a cross-stitch plot
1 2 |
p |
The plot object to use. |
x_range |
The range of the x values in the plot. Default is c(0,100), but should be entered per-project. |
y_range |
The range of the y values in the plot. Default is c(0,100), but should be entered per-project. |
pad |
Stitch padding to add around the edges of the pattern. Default is 5. |
center_arrows |
Logical, whether or not to include arrows pointing to the center stitch. Default is TRUE. |
base_size |
Base font size for the plot theme. Default is 10. See ?ggplot2::theme() for more information. |
base_family |
Base font family for the plot theme. Default is "", which will use system defaults. |
A ggplot2 object with grid, optional arrows, and theme applied.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.