README.md

CoolBarplots

A serie of cool barplots based in ggplot2 package

Install

devtools::install_github("arthur-rocha/Coolbarplots")

Features

point_barplot A barplot made of randomly generated points.

Example:

library(CoolBarplots)
x= LETTERS[1:3]
y= sample(50:200,size=3,replace=T)
point_barplot(x,y)

line_barplot A barplot made of randomly generated lines.

Example:

library(CoolBarplots)
x= LETTERS[1:3]
y= sample(50:200,size=3,replace=T)
line_barplot(x,y)

number_barplot A barplot made of frequency numbers.

Example:

library(CoolBarplots)
x= LETTERS[1:3]
y= sample(5:20,size=3,replace=T)
number_barplot(x,y)

Saving plots

As this package is ggplot2 based, the same function ggsave() can be used to save the plots.

Example:

library(CoolBarplots)
library(ggplot2)
x= LETTERS[1:3]
y= sample(5:20,size=3,replace=T)
p=number_barplot(x,y)
ggsave(p,"myplot.png",width = 6.9,height = 4.5)


arthur-rocha/CoolBarplots documentation built on May 22, 2019, 3:39 p.m.