Description Usage Arguments Details Value
alt_qplot
is inspired by qplot
from ggplot2, and is similarly intended
to be a convenient wrapper for making many different kinds of plots with a
simple and consistent interface. In this case, the generated plot
is made via altair, instead of ggplot2.
1 2 |
x, y, ... |
encodings. These should either be strings or symbols matching column names in data if data is provided, or a variable in the calling environment otherwise |
data |
a data.frame or tibble. If missing, the data for the plot will be taken from the encoding variables passed in. |
mark |
the mark to use. if "auto", will default to point except when only the y encoding is missing in which case the mark will default to bar and y will default to count() |
Paraphrasing the qplot
documentation in ggplot, alt_qplot is great
for allowing you to produce plots quickly, but I highly recommend
learning altair as it makes it easier to create complex graphics.
an altair plot specification
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.