1

I am using image.plot to generate images, and I have a colorbar generated, with ticks located at values 0,500,1500 and 2000.

What I would like is to have ticks located at values 300, 500, 900, 1000, 1500, 1600 and 2000. Can I realize this in R?

163
  • 205
  • 1
  • 12
  • Yes, you can realise this in R. See this question (http://stackoverflow.com/questions/11335836/increase-number-of-axis-ticks-in-ggplot2) on number of ticks in ggplot. – pogibas Apr 14 '15 at 09:38
  • 2
    From which package comes `image.plot`? –  Apr 14 '15 at 09:42
  • @Pgibas Thanks, but I mean the ticks of colorbar... not the axis.....is there anyway to do this? – 163 Apr 14 '15 at 09:48
  • @Pascal just the very basic packages, I don't use any additional ones. – 163 Apr 14 '15 at 09:49
  • There is no `image.plot` in basic packages. And `image` doesn't produce a colorkey. –  Apr 14 '15 at 10:08
  • @Pascal from field https://www.image.ucar.edu/GSP/Software/Fields/Help/image.plot.html, and is there any solution? – 163 Apr 15 '15 at 08:33
  • It seems not that easy. How other alternative such as `lattice` or `ggplot2`? –  Apr 15 '15 at 08:42
  • @Pascal ggplot2 can seems I have to turn to it..Thank you~ – 163 Apr 15 '15 at 14:17

0 Answers0