9.4 Mapping categorical variables to aesthetics cont.
Similarly, we can map
class
tosize
oralpha
(transparency) aesthetics as well.We get warnings because mapping a non-ordinal discrete variable (
class
) to an ordered aesthetic (size
oralpha
) is generally not a good idea because it implies a ranking that does not in fact exist.
## Warning: Using size for a discrete variable is not advised.
## Warning: Using alpha for a discrete variable is not advised.