R points()

1 개요[ | ]

R points()
R
Copy
plot(NULL, xlim=c(0,5), ylim=c(0,10), xlab="width", ylab="length", main="iris", type="n")
points(iris$Sepal.Width, iris$Sepal.Length, cex=.5, pch=20, col="blue")
points(iris$Petal.Width, iris$Petal.Length, cex=.5, pch=20, col="red")
Loading
R
Copy
plot(-4:4, -4:4, type = "n")  # setting up coord. system
points(rnorm(200), rnorm(200), col = "red")
points(rnorm(100)/2, rnorm(100)/2, col = "blue", cex = 1.5)
Loading
R
Copy
par(mar = rep(0,4))
plot(c(-1, 26), 0:1, type = "n", axes = FALSE)
text(0:25, 0.6, 0:25, cex = 0.5)
points(0:25, rep(0.3, 26), pch = 0:25, bg = "grey")
Loading

2 같이 보기[ | ]

3 참고[ | ]