Create a frequency histogram for codes
A parsed source(s) object.
A regular expression to select codes to include.
Whether to sort by frequency decreasingly
(decreasing
, the default), increasingly (increasing
),
or alphabetically (NULL
).
Force the stripping of roots, even if they are different.
If not NULL
, the number of character to trim
the source identifiers to.
Can be used to specify theme elements for the plot.
Whether to be chatty or silent.
### Get path to example source
examplePath <-
system.file("extdata", package="rock");
### Get a path to one example file
exampleFile <-
file.path(examplePath, "example-1.rock");
### Load example source
loadedExample <- rock::parse_source(exampleFile);
### Show code frequencies
code_freq_hist(loadedExample);