Skip to content

aotearoastats/dataplotr

Repository files navigation

dataplotr

This package mainly contains wrapper functions for ggplot2.

Installation

You can install dataplotr from github with:

# install.packages("devtools")
devtools::install_github("aotearoastats/dataplotr")

plot_barplot

Plot_barplot plots simple barplots with the option to add a grid. See ?plot_barplot for documentation.

library(dataplotr)
library(dplyr)
iris.plot <- iris %>% 
  group_by(Species) %>% 
  summarize(Sepal.Length=mean(Sepal.Length))

plot_barplot(iris.plot,
             main_title="Sepal.Length by Species on the Iris Data Set",
             x_var = "Species",
             y_var = "Sepal.Length",
             fill_title = "Species",
             fill_vars = "Species",
             colour_vars = "rev(Species)")

About

Data plotting functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages