The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Basics

Wojtek Kostelecki

2024-01-28

Overview

Use ezplot to quickly create presentation-ready charts that are also useful for exploratory data analysis. By default, ezplot functions aggregate multiple values of y for repeated categories of x, group, facet_y and facet_x.

Load data

library(ezplot)
suppressPackageStartupMessages(library(tsibble))
library(tsibbledata)
suppressPackageStartupMessages(library(dplyr))
suppressPackageStartupMessages(library(lubridate))

line_plot

line_plot(ansett, x = "Week", y = "Passengers")

line_plot(ansett, x = "Week", y = "Passengers", group = "Class")

bar_plot

df = ansett %>% 
  filter(between(year(Week), 1988, 1991))
bar_plot(df, x = "year(Week)", y = "Passengers")

bar_plot(df, x = "year(Week)", y = "Passengers", group = "Class")

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.