0

I have two vectors, one being all my longitudes and the other being all my latitudes. My longitude vector has a length of 720 and my latitude vector has a length of 360.

In addition to these vectors, I have a matrix that is 360x720 containing all the elevations corresponding to a longitude-latitude coordinate point. I need to use contour() to plot my topographical map, but I keep on getting

Error in plot.new() : figure margins too large"

when I try contour(lat_vec,long_vec,elev_matrix).

Any solutions to this?

989
  • 12,579
  • 5
  • 31
  • 53
Lilly
  • 11
  • 1
  • try calling `dev.off()` and running it again – Richard Border Mar 09 '15 at 00:36
  • If that doesn't work, make your plotting window bigger or save it directly to a file. – Gregor Thomas Mar 09 '15 at 00:53
  • We need code and data. At the moment you are just asking us to reconstruct an example without even saying what R plotting paradigm you are using. I will withdraw my close vote when you edit the question to include those items. – IRTFM Mar 09 '15 at 01:35
  • Thank you Gregor--seems like I didn't realize by adjusting the window, the error would disappear! – Lilly Mar 09 '15 at 04:42

0 Answers0