I also noticed that adding a custom axis with image.plot was a problem;
you can also do:
library(fields)
m <- matrix(1:15,ncol=3)
par(mar=c(5,5,5,7))
image(m, axes=FALSE)
# add axis
axis(1,axTicks(1),lab=letters[1:length(axTicks(1))])
box()
## add legend
image.plot(m, legend.only=TRUE)
O
Hi list,
I wanted to plot an image with a colorbar to the right of the plot, but set my
own axis labels (text rather than numbers) to the image. I have previously
accomplished this with two calls to image(), but the package 'fields' has a
wrapper function, image.plot(), which does this task con
2 matches
Mail list logo