I am having some trouble with ggmap. I apologize if this isn't the
right place to ask this question but after David Kahle's post this
week I was interested in trying ggmap out. However, when I try to
create a ggmap object I keep getting the same error. The corresponding
plot is created in the working directory as "ggmapTemp.jpg" but an
object isn't create and so I am not able to really take advantage of
all the great stuff of ggmap. Any thoughts?
> WashingtonMap_df <- ggmap(location = 'washington', verbose = TRUE)
grabbing map... Error in readPNG(destfile, native = native) : file is
not in PNG format
>
> lonR <- c(-97.12008, -97.11836)
> latR <- c(31.54765, 31.54911)
> osm <- ggmap(latR = latR, lonR = lonR, source = 'osm', scale = 1000)
Error in readPNG(destfile, native = native) : file is not in PNG format
>
> baylor <- ggmap('baylor university', zoom = 16,
+ maptype = 'satellite', regularize = FALSE, verbose = TRUE)
grabbing map... Error in readPNG(destfile, native = native) : file is
not in PNG format
> sessionInfo()
R version 2.14.2 (2012-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C
LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8
[5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8 LC_PAPER=C
LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] grid stats graphics grDevices utils datasets
methods base
other attached packages:
[1] ggmap_1.3 rjson_0.2.7 proto_0.3-9.2
reshape2_1.2.1 plyr_1.7.1 scales_0.2.0
[7] ggplot2_0.9.0 ReadImages_0.1.3.1 RgoogleMaps_1.2.0 png_0.1-4
loaded via a namespace (and not attached):
[1] colorspace_1.1-1 dichromat_1.2-4 digest_0.5.2
MASS_7.3-17 memoise_0.1 munsell_0.3
[7] RColorBrewer_1.0-5 stringr_0.6 tools_2.14.2
Thanks in advance!
Sam
I am also running ggmap 1.3 and ggplot 0.9
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: http://gist.github.com/270442
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+unsub...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
<DC.jpeg>
R version 2.14.2 (2012-02-29)
Platform: x86_64-pc-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
character(0)
other attached packages:
[1] ggmap_1.3
loaded via a namespace (and not attached):
[1] base_2.14.2 colorspace_1.1-1 datasets_2.14.2
[4] dichromat_1.2-4 digest_0.5.2 ggplot2_0.9.0
[7] graphics_2.14.2 grDevices_2.14.2 grid_2.14.2
[10] MASS_7.3-17 memoise_0.1 methods_2.14.2
[13] munsell_0.3 plyr_1.7.1 png_0.1-4
[16] proto_0.3-9.2 RColorBrewer_1.0-5 ReadImages_0.1.3.1
[19] reshape2_1.2.1 RgoogleMaps_1.2.0 rjson_0.2.8
[22] scales_0.2.0 stats_2.14.2 stringr_0.6
[25] tools_2.14.2 utils_2.14.2