[R] Error in par(pin = p) : invalid value

Aurelie Cosandey Godin godina at dal.ca
Mon Mar 26 13:17:03 CEST 2012


Dear list,

I am getting an error message with "pin" and I am not quiet sure how to fix it.

library(maps)
op<-par(mar=c(1,1,1,1))
map(xlim=c(-40,-45),ylim=c(60,65), boundary=T, fill=T, col='gray95')

>Error in par(pin = p) : 
  invalid value specified for graphical parameter "pin"

par("pin")
> par("pin")
[1] 8.188889 8.188889

I saved an earlier map in ggplot2 and changed the width & height of my plot window. Is this now affecting my par("pin") values....?
ggsave(file="newmap.pdf",width=16,height=9)

Thank you,
Aurelie


More information about the R-help mailing list