ezplot provides high-level wrapper functions for common chart types with reduced typing and easy faceting. e.g.:
line_plot()
area_plot()
bar_plot()
tile_plot()
waterfall_plot()
side_plot()
secondary_plot()
You can install the released version of ezplot from CRAN with:
And the development version from GitHub with:
Usage line_plotWeekly aggregation:
Add grouping:
Add faceting:
Plot YOY comparisons:
Plot multiple numeric columns:
area_plotWeekly aggregation:
Add grouping:
Add faceting:
area_plot(ansett,
"year(Week) + (month(Week) - 1) / 12",
y = c("Monthly Passengers" = "Passengers"),
group = "substr(Airports, 5, 7)",
facet_x = "substr(Airports, 1, 3)", facet_y = "Class",
facet_scales = "free_y") +
theme(axis.text.x = element_text(angle = 90, vjust = 0.38, hjust = 1))
bar_plot
Yearly aggregation:
With grouping:
Share of turnover:
tile_plot waterfall_plot side_plot secondary_plotPlot with secondary y-axis.
density_plot histogram_plot Classification data roc_plot pr_plotPrecision-Recall plot
lift_plotset.seed(4)
performance_plot(df, "pred", "lab", x = "rpp", y = "lift") +
performance_plot(df, "pred", "lab", group = "sample(c(0, 1), n(), replace = TRUE)", x = "rpp", y = "lift")
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4