hgchmagic.Rmd
library(hgchmagic)
#> Registered S3 method overwritten by 'quantmod':
#> method from
#> as.zoo.data.frame zoo
hgchmagic has a set of functions to assists users when plotting data. Here you´ll see how to use it.
The core function to plot a bar plot with hgchmagic is
hgch_bar()
data <- ggplot2::diamonds
data <- dsdataprep::aggregation_data(data = data,
agg = "sum",
group_var = "cut",
to_agg = "price")
hgch_bar(data, var_cat = "cut", var_num = "price")
#> in theme_datasketch