> i need help in my coding
> the first line and the second line works and the ggplot works
> when i have a code like this and i want to fetch a map and saves it to
> a directory how can i put it
> because it gives me an error message
> Error in load(GGemz) : bad 'file' argument
>
> GGemz <- ggooglemap(center=center,zoom=13,destfile="Emz.png")
> save(GGemz,file="GGemz.Rda")
> load(GGemz)
> and when i put the GGemz in brackets it gives me an error
> load(file="GGemz")
> Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
> In addition:Warning message:
> In readChar(con, 5L, useBytes = TRUE) :
>
> i dont have a problem here
> ggplot()+
> geom_tile(aes(x = lon, y = lat, fill = fill), data = GGemz)+
> geom_jitter(aes(x=lon,y=lat, color=fieldworker),data=emz)+
> scale_fill_identity()+
> scale_x_continuous('Longitude', limits = lon_range) +
> scale_y_continuous('Latitude', limits = lat_range) +
> scale_colour_discrete('') +
> opts(title = 'Invitation map of Emzinini, 2012') +
> coord_equal()
>
> this code brings an error says
> Error in dev.copy2pdf(device = "x11", file = paste(mapdir,
"EmzinoniGG.pdf", :
> no device to print from
> i am not sure what does the error mean
>
dev.copy2pdf(device="x11",file=paste(mapdir,"EmzinoniGG.pdf",sep=""))
> dev.off()
> --
> Leah Mathibela
> mobile:078-3311-491
> work:087-7545-997
> www.nova.org.za
David Winsemius, MD
West Hartford, CT
No virus found in this message.
Checked by AVG - www.avg.com <http://www.avg.com>
--
Leah Mathibela
mobile:078-3311-491
work:087-7545-997
www.nova.org.za
[[alternative HTML version deleted]]