Development of the ggExpress package for quick ggpubr based plotting ala 'Type less, Plot more'. This package is work in progress.
Install directly from GitHub via devtools with one R command:
# install.packages("devtools"); # If you don't have it.
require("devtools")
# Install dependencies
devtools::install_github(repo = "vertesy/Stringendo", upgrade = F)
devtools::install_github(repo = "vertesy/ReadWriter", upgrade = F)
devtools::install_github(repo = "vertesy/CodeAndRoll2", upgrade = F)
devtools::install_github(repo = "vertesy/MarkdownHelpers", upgrade = F)
# Install MarkdownHelpers
devtools::install_github(repo = "vertesy/ggExpress")
...then simply load the package:
require("ggExpress")
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/ggExpress/main/R/ggExpress.functions.R")
source("https://raw.githubusercontent.com/vertesy/ggExpress/main/R/ggExpress.auxiliary.functions.R")
If you encounter a bug, something doesn't work or unclear, please let me know by raising an issue on ggExpress – Please check if it has been asked.
require('ggpubr')
require('cowplot')
require('Stringendo')
require('ReadWriter')
require('CodeAndRoll2')
require('MarkdownHelpers')
require('ggExpress')
# Test ------------------
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")
Saved as pdf by default.
Updated: 2023/07/22 11:39
-
This function generates a histogram and saves the plot for a given vector and offers several customizations.
-
Draw and save a density plot.
-
Draw and save a barplot.
-
Draw and save a barplot for tibbles or dataframes
-
Draw and save a pie chart
-
Draw and save a boxplot
-
Draw and save a violin plot
-
Generates a stripchart and saves the plot for a given 2-column dataframe and offers several customizations.
-
Draw and save a 2D-scatter plot.
-
Draw and save a Venn Diagram using the
ggVennDiagram
package. -
Quick-Save ggplot objects
-
Plot up to 6 panels (3-by-2) on vertically standing A4 page.
-
Plot up to 6 panels (3-by-1) on vertically standing A4 page.
-
Insert Markdown image link to .md report
-
Define Axis Length
-
Covert a named vector to a table.
-
Covert a table to a named vector.