For my PhD researches I am trying to get to grips with QGIS and in particular with using QGIS within R, but it's a steep and tricky learning curve. For example I have installed RQGIS successfully but any example programs won't run because (apparently) I haven't got x-display enabled - I haven't got the foggiest what that is or how to get it. So basically my question is - can anyone recommend any sources/websites/books/videos etc which would give examples/walkthroughs/explanations of how to get off the ground with QGIS in R/RQGIS etc? Thanks Nick Wray [[alternative HTML version deleted]]
https://www.qgis.org/en/site/ (obviously) Probably better to ask on https://stat.ethz.ch/mailman/listinfo/r-sig-geo Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, Apr 23, 2022 at 7:32 AM Nick Wray <nickmwray at gmail.com> wrote:> > For my PhD researches I am trying to get to grips with QGIS and in > particular with using QGIS within R, but it's a steep and tricky learning > curve. For example I have installed RQGIS successfully but any example > programs won't run because (apparently) I haven't got x-display enabled - > I haven't got the foggiest what that is or how to get it. So basically my > question is - can anyone recommend any sources/websites/books/videos etc > which would give examples/walkthroughs/explanations of how to get off the > ground with QGIS in R/RQGIS etc? Thanks Nick Wray > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Hi Nick, There's a geospatial mailing list that might be helpful (r-sig-geo), but also you don't give enough information to help. Are you running Windows? What version of QGIS did you install? Where did you get RQGIS from - it is no longer on CRAN, and is obsolete and not recommended because it only supports QGIS2 (https://github.com/r-spatial/RQGIS). One option might be to try RQGIS3 (https://github.com/r-spatial/RQGIS3), but again there the developers suggest that you don't, and offer some other possibilities. The geospatial capabilities built into R are very good, and you might not even need QGIS as part of your main workflow. Look into the sf and raster (or terra) packages for vector and raster processing, respectively. Good resources include https://r-spatial.org and the spatial data science book at https://keen-swartz-3146c4.netlify.app Sarah On Sat, Apr 23, 2022 at 10:32 AM Nick Wray <nickmwray at gmail.com> wrote:> > For my PhD researches I am trying to get to grips with QGIS and in > particular with using QGIS within R, but it's a steep and tricky learning > curve. For example I have installed RQGIS successfully but any example > programs won't run because (apparently) I haven't got x-display enabled - > I haven't got the foggiest what that is or how to get it. So basically my > question is - can anyone recommend any sources/websites/books/videos etc > which would give examples/walkthroughs/explanations of how to get off the > ground with QGIS in R/RQGIS etc? Thanks Nick Wray > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Sarah Goslee (she/her) http://www.numberwright.com
On Sat, 23 Apr 2022 15:32:07 +0100 Nick Wray <nickmwray at gmail.com> wrote:> For example I have installed RQGIS successfully but any example > programs won't run because (apparently) I haven't got x-display > enabledBad news: RQGIS is apparently not maintained any more [1,2], because it only supports the old version of QGIS (2 instead of 3). There was something called RQGIS3, but it didn't work out, either [3]. Your best bet might be something else called qgisprocess [4], which isn't on CRAN (yet?), but at least doesn't have scary warnings in its README. I'll second the advice to ask in R-SIG-Geo. That X11-related problem (?) might solve itself by the time you switch to another package, but if it doesn't, make sure to mention the exact error message and the operating system you are running: X11 is very different between Windows, macOS and other POSIX-compatible OSes.> [[alternative HTML version deleted]]P.S. Please compose your messages to R mailing lists in plain text, not HTML. -- Best regards, Ivan [1] https://cran.r-project.org/package=RQGIS [2] https://github.com/r-spatial/RQGIS [3] https://github.com/r-spatial/RQGIS3 [4] https://github.com/paleolimbot/qgisprocess