powered by
Uses Grid graphics to draw a face.
Grid
chernoffGrob( x = 0.5, y = 0.5, size = 1, colour = "black", fill = NA, alpha = 1, smile = 1, brow = NA, nose = FALSE, eyes = 1 )
A grobTree object.
grobTree
horizontal position
vertical position
area of the face
colour of outlines and features
fill colour
transparency, where 0 is transparent and 1 is opaque
amount of smiling/frowning
eyebrow angle, to represent anger or concern
logical. Adds a nose to the face
distance between the eyes
geom_chernoff
face <- chernoffGrob(.5, .5, size = 1e3, smile = -1, brow = 1, colour = 'navy', fill = 'lightblue') grid::grid.newpage() grid::grid.draw(face)
Run the code above in your browser using DataLab