These days I am extensively using R to scatter plots. Most of the plotting is concerned with image processing, Recently I was thinking of plotting the scatter plots over an image.
For example, I want something like this, The background needs to be filled with my image. With a particular scale. And I should be able to draw points (co-ordinates) on top of this image ...
Is this possible in R? If not, do you guys know of any other tool that makes this easy ...
这种绘图的分步教程在R-wiki中
I'm not 100% sure what you have in mind, but I think first you want to load and plot an image in R. You can do that with the ReadImages
package:
picture <- read.jpeg("avatar.jpg")
plot(picture)
Then you can do a scatter plot on top of it:
points(runif(50,0, 128), runif(50,0,128))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.