This is a Plot that can be useful for initial analysis of the data
plot(pData$JWMNP, pData$WAGP, pch=19, col="blue")
What if we want to include one more variable?
plot(pData$JWMNP, pData$WAGP, pch=19, col=pData$SEX, cex=0.5)
How to visualize when there are many data points in your data?
x = rnorm(10000) y = rnorm(10000) plot(x, y, pch=19)
Sample you data
sampledValues = sample(1:10000, size=1000, replace=F) plot(x[sampledValues], y[sampledValues], pch=19)
smoothScatter(x, y)