README.md

AggiePlot

Generating publication ready scientific and technical plots using ggplot2, officer and OpenCPU

Examples are shown in this Google Document - AggiePlot Examples [https://docs.google.com/document/d/10vmJLPT6XqXzHXDKlRAd5R_qSj4bkcLWA-5MNC_Skvo/edit?usp=sharing]

Creating publication ready figures is a major task for preparing manuscripts. Usually, figures are edited in Microsoft powerpoint software for making them ready for the submission version. AggiePlot creates editable powerpoint slides for commonly used plots in scientific publications. New plots will be added as found in the literature. If you have any suggestion for a plot to be included in the AggiePlot tool, please suggest to me at dinkumar@ucdavis.edu

if (!require("devtools"))
install.packages('devtools', repos="http://cran.rstudio.com/")

if (!require("RCurl"))
install.packages('RCurl', repos="http://cran.rstudio.com/")

if (!require("pacman"))
install.packages('pacman', repos="http://cran.rstudio.com/")

library(devtools)
library(RCurl)
library(pacman)

pacman::p_load(htmlwidgets,DT,RCurl,RJSONIO,ape,devEMF,dynamicTreeCut,extrafont,flextable,ggplot2,ggpubr,ggrepel,grid,gridExtra,installr,magrittr,officer,openxlsx,phytools,plotly,plotrix,rvg,mixOmics)

installr::install.Rtools()

install_github('barupal/AggiePlot')
library(AggiePlot)

Generate Box and whisker plots

generateBoxPlots(
  numericData = "1001data_matrix.csv",
  sampleInfo ="1001sample_metadata.csv",
  cpdInfo="1001data_dictionary.csv",
  bw.param="1001boxplot_param.csv"
)

It will export box whisker plots in the working directory. Example data files are available in this repository, you can use them as a template to format your data.



barupal/AggiePlot documentation built on May 17, 2019, 8:47 p.m.