Description Usage Arguments Examples
ggquik has specific standards for plots, and quik_points
helps your plot follow these.
1 2 3 4 | quik_points(df, dimension, measure, groups, palette_type,
colors, point_size, dim_breaks,
facet_by, area, text_size,
currency, measure_unit, measure_decimal, ...)
|
df |
The data frame containing plot data |
dimension |
Usually the x-axis, values like "quarter" or "account type" |
measure |
The column containing numerical values to be plotted |
groups |
The column containing the different groups of lines |
palette_type |
A string. Allowed values are |
colors |
The the colors to be used for the line(s)/point(s) |
point_size |
A numeric. The size of the points (default is |
dim_breaks |
A vector of specific dimension values that should be labeled. |
facet_by |
The column containing the group to facet the plots (if desired). |
area |
A logical. Should the plot be drawn as an area plot? |
text_size |
The size of the label text size. Default is 3 |
currency |
A string, usually |
measure_unit |
A string. Can be |
measure_decimal |
An integer. The number of decimal places to show. |
... |
Additional parameters to pass on it facet_wrap (e.g. scales = free, ncol = 1) |
1 2 3 4 5 | # Create a line plot from morley data
data(morley)
ggq <- quik_points(morley, dimension = 'Run', measure = 'Speed',
groups = 'Expt', text_size = 0)
quik_theme(ggq, axis.text = 'y', axis.title = c('x', 'y'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.