From 617b79fb3e0707b9bd0b446db73a2b1d7f6f3f94 Mon Sep 17 00:00:00 2001 From: Chris Sobczak Date: Wed, 10 Jun 2026 15:58:27 -0700 Subject: Add corplot --- man/corplot.Rd | 26 ++++++++++++++++++++++++++ man/gg_csobczak.Rd | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 man/corplot.Rd (limited to 'man') diff --git a/man/corplot.Rd b/man/corplot.Rd new file mode 100644 index 0000000..72d4df0 --- /dev/null +++ b/man/corplot.Rd @@ -0,0 +1,26 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/corplot.R +\name{corplot} +\alias{corplot} +\title{Correlation PLot (Upper Triangle)} +\usage{ +corplot(R, title = NULL) +} +\arguments{ +\item{R}{A square numeric correlation matrix} + +\item{title}{Optional plot title} +} +\value{ +A ggplot object +} +\description{ +Minimal ggplot2 correlation plot showing the upper triangle +in the top-right corner with no axis labels. +} +\examples{ +X <- matrix(data = rnorm(100), nrow = 10) +R <- cor(X) +corplot(R, title = 'Example Correlation Plot') + +} diff --git a/man/gg_csobczak.Rd b/man/gg_csobczak.Rd index d5951a1..70495d5 100644 --- a/man/gg_csobczak.Rd +++ b/man/gg_csobczak.Rd @@ -14,7 +14,7 @@ This adds standard formating to my ggplots. } \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) } \keyword{ggplot} -- cgit v1.2.3