Displaying 1 result from an estimated 1 matches for "mydiamonds".
Did you mean:
diamonds
2010 Apr 07
1
ggplot2, density barplot and geom_point layer
Hi,
Please consider the example below. How can I manage to overlay the points
the way I want in the second case?
Thanks, Joh
library(ggplot2)
# Modify data to match "real" case
myDiamonds <- diamonds
myDiamonds[["clarity"]] <- as.character(myDiamonds[["clarity"]])
myDiamonds[myDiamonds[["clarity"]]=="I1","clarity"] <- 1
myDiamonds[myDiamonds[["clarity"]]=="SI2","clarity"] <- 2
myDiamonds[myDi...