-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with geom_subplot example in R 3.1.0 #10
Comments
This seems to be an issue with R 3.1.0, I am able to run the code just fine in R 3.0.3. |
+1 |
2 similar comments
+1 |
+1 |
Thanks for sharing. I have the same problem. Does anybody know how to download R 3.0.3 to replace R 3.1.1 on a mac Mac (OS X Server Lion 10.7.5)? |
Found it!: It is here -http://cran.r-project.org/bin/macosx/old/ |
Does this have any change of getting fixed (soon-ish)? Relying on an old version of R is not a solution. |
From Stackoverflow (http://stackoverflow.com/questions/20465070/barplots-on-a-map):
|
I'm trying to run with R 3.1.2 and in debug process the problem is at line 44 of file sp_layer_build.r panelxspan <- range(unlist(data[names(data) %in% .x_aes]), na.rm = TRUE) dbg <- minimal$layers minimal$layers <- list(geom_point(aes(xspan, yspan),data = data.frame(xspan, yspan)))panel <- ggplot2::ggplot_build(minimal)$panel the ocmmaind minimal$layers <- list(...) broken with the message "Error in layout_base(data, vars, drop = drop) : At least one layer must contain all variables used for facetting" I think that those substitution of layers was causing the error message, because all subplot disappear and left only the points ( no spatial data structure ) My first approach was concatenate both info but does not work |
I'm not exactly sure how I fixed this, but it seems to be ok now. |
@hadley With which version of ggplot2 did you test it? Still doesn't work for me with v1.0.1. I tried to install the dev version from github, but it failed due to a problem with the scales package. |
Dear R users, |
Has anybody found another way to do what ggsubplot did? I was using it to put little bar plots on different parts of a map. However, I have now got fresh data in to add to the map and cannot face reinstalling an old version of R just to make ggsubplot work. Also, my other programmes need the uptodate R version. Does anybody know of another (reasonably straightforward) way to add bar plots to a map in R ? I was using ggmap with a background map extracted fem the open-street-map resource. |
For me, it only works when I reinstall ggsubplot in every session - why could that be? @mbcasey Could you try the code from this issue (#15) please? For some reason, that solved my problems: Like it is done there, I apparently always need to reinstall the package first. If you get error messages like |
@mbcasey maybe see http://ygc.name/2015/08/31/subview/. This function is not powerful as in |
I use ggsubplot 0.3.2 with R 3.2.2 and also get the warning: |
I also have the same problem and I think we have to find a solution. geom_subplot() would be a really nice feature in ggplot2. |
+1, I am going to use package plotgooglemaps, which generates pie charts on a google maps. |
@PetrBechynak I write my own function to plot pies in map, https://github.com/GuangchuangYu/mapr |
I am trying to run the example from the
geom_subplot
help pageAnd I get the following error:
This same error occurs with with every ggsubplot example I've tried to run so far. I've tried with both the CRAN and github version of ggsubplot.
The text was updated successfully, but these errors were encountered: