ropensci / neotoma

Programmatic R interface to the Neotoma Paleoecological Database.
https://docs.ropensci.org/neotoma
Other
30 stars 16 forks source link

Mapping throws error #98

Closed sckott closed 10 years ago

sckott commented 10 years ago

In one of the examples from the manuscript (https://github.com/SimonGoring/neotoma_paper/blob/master/Neotoma_paper.Rmd#L81-L88), I get

bc.map <- get_map(location = c(-120, 60), zoom = 4)

ggmap(bc.map) +
   geom_point(data = all.sites, aes(x = long, y = lat)) +
   geom_point(data = get_site(dataset = all.datasets),
              aes(x = long, y = lat),
              color = 2) +
   xlab('Longitude West') + ylab('Latitude North')
Error: Request-URI Too Long

Is it just me?

<r> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-apple-darwin13.1.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] grid      stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] mapproj_1.2-2          maps_2.3-6             gridExtra_0.9.1        Bchron_4.1.1           inline_0.3.13         
 [6] plyr_1.8.1             reshape2_1.4           ggmap_2.3              ggplot2_0.9.3.1        neotoma_1.0-1         
[11] Rdocumentation_0.1     slidifyLibraries_0.3.1 slidify_0.4.5          sacbox_0.0.0           devtools_1.5.0.99     

loaded via a namespace (and not attached):
 [1] animation_2.2           ape_3.1-1               clusterGeneration_1.3.1 coda_0.16-1             colorspace_1.2-4       
 [6] digest_0.6.4            ellipse_0.3-8           evaluate_0.5.5          expm_0.99-1.1           fastmatch_1.0-4        
[11] formatR_0.10            gtable_0.1.2            hdrcde_3.1              httr_0.4                igraph_0.7.0           
[16] knitr_1.6               labeling_0.2            lattice_0.20-29         markdown_0.6.5          MASS_7.3-33            
[21] Matrix_1.1-4            mclust_4.3              memoise_0.2.1           mnormt_1.4-7            msm_1.3                
[26] munsell_0.4.2           mvtnorm_0.9-99992       nlme_3.1-117            numDeriv_2012.9-1       parallel_3.1.1         
[31] phangorn_1.99-7         phytools_0.4-05         plotrix_3.5-5           png_0.1-7               proto_0.3-10           
[36] Rcpp_0.11.1             RCurl_1.95-4.1          reshape_0.8.5           rgl_0.93.996            RgoogleMaps_1.2.0.6    
[41] rjson_0.2.13            RJSONIO_1.2-0.2         scales_0.2.4            scatterplot3d_0.3-35    splines_3.1.1          
[46] stringr_0.6.2           survival_2.37-7         tools_3.1.1             whisker_0.3-2           XML_3.98-1.1           
[51] yaml_2.1.13  
SimonGoring commented 10 years ago

Nope, and it seems to be new since it's run fine before. For me it also runs when I use it directly, but not when I knit. I'm going to throw out the ggmap and use rWorldMap.

On Thu, Aug 7, 2014 at 2:53 PM, Scott Chamberlain notifications@github.com wrote:

In one of the examples from the manuscript ( https://github.com/SimonGoring/neotoma_paper/blob/master/Neotoma_paper.Rmd#L81-L88), I get

ggmap(bc.map) + geom_point(data = all.sites, aes(x = long, y = lat)) + geom_point(data = get_site(dataset = all.datasets), aes(x = long, y = lat), color = 2) + xlab('Longitude West') + ylab('Latitude North')

Error: Request-URI Too Long

Is it just me?

sessionInfo() R version 3.1.1 (2014-07-10) Platform: x86_64-apple-darwin13.1.0 (64-bit) locale:[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages:[1] grid stats graphics grDevices utils datasets methods base other attached packages: [1] mapproj_1.2-2 maps_2.3-6 gridExtra_0.9.1 Bchron_4.1.1 inline_0.3.13 [6] plyr_1.8.1 reshape2_1.4 ggmap_2.3 ggplot2_0.9.3.1 neotoma_1.0-1 [11] Rdocumentation_0.1 slidifyLibraries_0.3.1 slidify_0.4.5 sacbox_0.0.0 devtools_1.5.0.99 loaded via a namespace (and not attached): [1] animation_2.2 ape_3.1-1 clusterGeneration_1.3.1 coda_0.16-1 colorspace_1.2-4 [6] digest_0.6.4 ellipse_0.3-8 evaluate_0.5.5 expm_0.99-1.1 fastmatch_1.0-4 [11] formatR_0.10 gtable_0.1.2 hdrcde_3.1 httr_0.4 igraph_0.7.0 [16] knitr_1.6 labeling_0.2 lattice_0.20-29 markdown_0.6.5 MASS_7.3-33 [21] Matrix_1.1-4 mclust_4.3 memoise_0.2.1 mnormt_1.4-7 msm_1.3 [26] munsell_0.4.2 mvtnorm_0.9-99992 nlme_3.1-117 numDeriv_2012.9-1 parallel_3.1.1 [31] phangorn_1.99-7 phytools_0.4-05 plotrix_3.5-5 png_0.1-7 proto_0.3-10 [36] Rcpp_0.11.1 RCurl_1.95-4.1 reshape_0.8.5 rgl_0.93.996 RgoogleMaps_1.2.0.6 [41] rjson_0.2.13 RJSONIO_1.2-0.2 scales_0.2.4 scatterplot3d_0.3-35 splines_3.1.1 [46] stringr_0.6.2 survival_2.37-7 tools_3.1.1 whisker_0.3-2 XML_3.98-1.1 [51] yaml_2.1.13 — Reply to this email directly or view it on GitHub https://github.com/ropensci/neotoma/issues/98.
sckott commented 10 years ago

Okay, sounds good

SimonGoring commented 10 years ago

I'm going to close the issue. This is a duplicate of issue 4 in the neotoma_paper repository here: https://github.com/SimonGoring/neotoma_paper/issues/4

sckott commented 10 years ago

cool coo