This function calculates the mean y-value for each x-value. Should be used
only when x
is discrete. The resulting mean can be mapped to any
aesthetic, specified with the output
parameter.
1 2 3 4 5 6 7 8 9 10 11 12 |
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options:
if |
input |
The value to find the mean of. If |
output |
"AQIColors", "mv4Colors", "scaqmd", "y" |
geom |
The geometic object to display the data |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
na.rm |
remove NA values from data |
show.legend |
logical indicating whether this layer should be included in legends. |
inherit.aes |
if |
... |
additional arguments passed on to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.