Description Usage Arguments Details Aesthetics Computed variables See Also
As in geom_bar
, depending on what is maped to bar_pic
height two types of bar_pic charts are produced. Default is stat = "count"
,
which makes the height of the bar_pic proportional to the numbers of cases in
each group. stat = "identity"
will map height to values in the data,
so you need to map an y
aesthetic also.
1 2 3 |
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
Override the default connection between |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
width |
Pic width. By default, set to 90% of the resolution of the data. |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
asis |
Logical indicating if the pic must be used as is, with no filling.
If FALSE, the default, image not transparent pixels will be filled to the
color provided in |
inherit.aes |
If |
... |
other arguments passed on to |
As opposed to geom_bar
, multiple x's occurring in the
same place will be "dodged" with position = "dodge"
. If you want your
pics stacked, change to position = "stack"
.
geom_bar_pic
understand the following aesthetics (required aesthetics
are in bold):
x
pic
alpha
fill
colour
size
linetype
number of points in bin
groupwise proportion
geom_bar
in the ggplot2
package
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.