ggExpress

ggExpress is the fastest way to create, annotate and export plots in R.

View project on GitHub

ggExpressDev

Development of ggExpress package for quick ggpubr based plotting

image

List of functions

  • qhistogram()

  • qdensity()

  • qbarplot()

  • qpie()

  • qscatter()



Installation

Install directly from GitHub via devtools with one R command:

# install.packages("devtools"); # If you don't have it.
require("devtools")
devtools::install_github(repo = "vertesy/ggExpressDev")

…then simply load the package:

require("ggExpressDev")

Alternatively, you simply source it from the web. This way function help will not work, and you will have no local copy of the code on your hard drive.

source("https://raw.githubusercontent.com/vertesy/ggExpressDev/main/R/ggExpress.functions.R")
source("https://raw.githubusercontent.com/vertesy/ggExpressDev/main/R/ggExpress.auxiliary.functions.R")

Usage

require(ggpubr)
require(cowplot)
require(MarkdownReports) # https://github.com/vertesy/MarkdownReportsDev

source("https://raw.githubusercontent.com/vertesy/ggExpressDev/main/ggExpress.functions.R")


weight <- rnorm(1000); 
qhistogram(weight, vline = 3)
qdensity(weight)

weight3 <- runif (12)
qbarplot(weight3)

xvec <- c("A"=12, "B"=29)
qpie(vec = xvec)


dfx <- as.data.frame(cbind("AA"=rnorm(12), "BB"=rnorm(12)))
qscatter(dfx, suffix = "2D.gaussian")

Output

Saved as pdf by default.

weight.dens weight.hist weight3.bar xvec.pie dfx.2D.gaussian.scatter