In its original sense, in archeology, a glyph is a carved symbol.
Heiroglyph | Mayan glyph |
---|---|
CVC 2015
In its original sense, in archeology, a glyph is a carved symbol.
Heiroglyph | Mayan glyph |
---|---|
The features of a data glyph encodes the value of variables.
Aesthetics are visual properties of a glyph.
glyph : The basic graphical unit that represents one case. Other terms used include mark and symbol.
aesthetic : a visual property of a glyph such as position, size, shape, color, etc.
sex -> color
color is black
scale : A mapping that translates data values into aesthetics.
frame : The position scale describing how data are mapped to x and y
guide : An indication for the human viewer of the scale. This allows the viewer to translate aesthetics back into data values.
Glyph-ready data has this form:
Glyph-ready data
## sbp dbp sex smoker ## 1 129 75 male never ## 2 105 62 female never ## 3 122 72 male never ## 4 128 83 female former ## 5 123 90 male former ## 6 122 77 male current
Mapping of data to aesthetics
sbp -> x dbp -> y smoker -> color sex -> shape
Scales determine details ofdata -> aesthetic
translation
sbp
and sex
sex
Each layer may have its own data, glyphs, aesthetic mapping, etc.
## sbp dbp sex smoker ## 1 129 75 male never ## 2 105 62 female never ## 3 122 72 male never ## 4 128 83 female former
Eye-training
Data wrangling
dplyr
, tidyr
)Graphics construction
lattice
, ggplot2
)Map variables to aesthetics with mplot()