powered by
geom_rug(mapping = NULL, data = NULL, stat = "identity", position = "identity", ...)
aes
aes_string
layer
p <- ggplot(mtcars, aes(x=wt, y=mpg)) p + geom_point() p + geom_point() + geom_rug() p + geom_point() + geom_rug(position='jitter')
Run the code above in your browser using DataLab