summaryrefslogtreecommitdiff
path: root/R/gg_csobczak.R
diff options
context:
space:
mode:
authorChris Sobczak <chris@sobczak.family>2026-06-10 15:58:27 -0700
committerChris Sobczak <chris@sobczak.family>2026-06-10 15:58:27 -0700
commit617b79fb3e0707b9bd0b446db73a2b1d7f6f3f94 (patch)
tree4a0b566759e57b2cd2e78a34e8c5f50e15a35183 /R/gg_csobczak.R
parent967618a8afd690064fc26631340edac8ab584d11 (diff)
Add corplot
Diffstat (limited to 'R/gg_csobczak.R')
-rw-r--r--R/gg_csobczak.R6
1 files changed, 4 insertions, 2 deletions
diff --git a/R/gg_csobczak.R b/R/gg_csobczak.R
index 97448a3..2817637 100644
--- a/R/gg_csobczak.R
+++ b/R/gg_csobczak.R
@@ -4,10 +4,12 @@
#' @param p A ggplot object to add formatting to.
#' @keywords ggplot plot p
#' @export
+#' @import ggplot2
#' @examples
#' df <- data.frame(x=rnorm(10), y=rnorm(10))
-#' p <- ggplot(data=df, aes(x=x, y=y)) + geom_point()
+#' p <- ggplot2::ggplot(data=df, ggplot2::aes(x = x, y = y)) + ggplot2::geom_point()
#' p <- gg_csobczak(p)
gg_csobczak <- function(p){
- p + theme_classic()
+ p <- p + ggplot2::theme_classic()
+ return(p)
}