Description Usage Arguments Value Examples
Provides a menu selection system (via manipulate
) so that the variables
for different aspects of a plot can be selected interactively. The ggplot2
command for generating the plot currently being displayed is copied to the console,
whence it can be copied to a document for later direct, non-interactive use.
1 2 3 4 5 6 7 8 9 10 11 12 |
data |
Dataframe containing the variables that might be used in the plot. |
key |
name of variable holding the state or country ID(for mWorldMap and mUSMap only) |
fill |
name of variable to use for the cholopleth map (for mWorldMap and mUSMap only) |
Nothing. Just for plotting side effects.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
scatterGraphHelper(HappinessIndex) # the use menu to map variables to aesthetics
Counts <-
Minneapolis2013 %>%
group_by(First, Precinct) %>%
summarise(vote_count=n())
barGraphHelper(Counts)
WorldMap(CountryData, key=country, fill=fert)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.