Description Usage Arguments See Also Examples
View source: R/ds-freq-table.R
Frequency table for categorical and continuous data and returns the
frequency, cumulative frequency, frequency percent and cumulative frequency
percent. plot.ds_freq_table()
creates bar plot for the categorical
data and histogram for continuous data.
1 2 3 4 |
data |
A |
col |
Column in |
bins |
Number of intervals into which the data must be split. |
x |
An object of class |
print_plot |
logical; if |
... |
Further arguments to be passed to or from methods. |
1 2 3 4 5 6 7 8 9 10 11 12 13 | # categorical data
ds_freq_table(mtcarz, cyl)
# barplot
k <- ds_freq_table(mtcarz, cyl)
plot(k)
# continuous data
ds_freq_table(mtcarz, mpg)
# barplot
k <- ds_freq_table(mtcarz, mpg)
plot(k)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.