View source: R/funnel-web-plot.R
funnel_web_plot | R Documentation |
This function takes in the data which has been prepared by either anim_prep()
or anim_prep_cat()
and
return the ggplot object. The user can still modify the plot the same as normal using the ggplot2 function.
funnel_web_plot(data, group_palette = NULL, ...)
data |
The animbook object returned from the prep function. |
group_palette |
The vector of the palette used by the function to supply the color to each group. |
... |
Additional arguments for customization. See details for more information. |
This function takes prepared data and generates a ggplot object. The funnel web plot is the plot that shows the line facetted plot showing the pattern between time period. The line jitter can be controlled using additional arguments such as height and width to control the appearance. For the shading area, the alpha argument can be used.
Return a ggplot object.
animbook <- anim_prep(data = osiris, id = ID, values = sales, time = year, group = japan)
funnel_web_plot(animbook)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.