Re: [R-sig-Geo] Segmentation fault

2019-10-29 Thread Roger Bivand
On Mon, 28 Oct 2019, Eduardo Diez wrote: Hi everyone. I'm having problems running spatial processes in a domino machine. I Please raise an issue on https://github.com/r-spatial/sf/issues, giving much more detail about your installation (domino is unknown to everybody but yourself, duckduckgo

Re: [R-sig-Geo] Installation of proj4 v6 on Ubuntu 18.04 Error: proj/epsg not found

2019-10-29 Thread Tomislav Hengl
Thanks Edzer, I removed my gdal (which removes also all QGIS and everything connect unfortunately) then I followed your steps and I get (somehow the proj version is still 5 and not 6): > install.packages("rgdal") % Total% Received % Xferd Average Speed TimeTime Time Curren

Re: [R-sig-Geo] Segmentation fault

2019-10-29 Thread Eduardo Diez
Roger, Yes sorry about the confusion. Domino is a company (dominodatalab.com) that offers a an environment for data science. It's based on docker images. On one of those images I installed sf and lwgeom. What information should I get from the image that helps identify the source of the problem? Th

Re: [R-sig-Geo] Segmentation fault

2019-10-29 Thread Roger Bivand
On Tue, 29 Oct 2019, Eduardo Diez wrote: Roger, Yes sorry about the confusion. Domino is a company (dominodatalab.com) that offers a an environment for data science. It's based on docker images. On one of those images I installed sf and lwgeom. What information should I get from the image that h

Re: [R-sig-Geo] Installation of proj4 v6 on Ubuntu 18.04 Error: proj/epsg not found

2019-10-29 Thread Edzer Pebesma
Would you mind giving the ouptut of: pkg-config proj --libs pkg-config proj --cflags and also try: install.packages("rgdal", repos="http://R-Forge.R-project.org";) On 10/29/19 7:11 AM, Tomislav Hengl wrote: > > Thanks Edzer, > > I removed my gdal (which removes also all QGIS and everything co

Re: [R-sig-Geo] Plotting median values globally

2019-10-29 Thread Vijay Lulla
Did you try `levelplot(raster(RCP1pctCO2median, 61))`? On Tue, Oct 29, 2019 at 12:17 AM rain1290--- via R-sig-Geo < r-sig-geo@r-project.org> wrote: > Hi there, > I am trying to create a global plot with median precipitation values. What > I would like to do is isolate the "median" values and plot

Re: [R-sig-Geo] Installation of proj4 v6 on Ubuntu 18.04 Error: proj/epsg not found

2019-10-29 Thread Roger Bivand
On Tue, 29 Oct 2019, Edzer Pebesma wrote: Would you mind giving the ouptut of: pkg-config proj --libs pkg-config proj --cflags and also try: install.packages("rgdal", repos="http://R-Forge.R-project.org";) Preferably not this, not currently stable. Latest CRAN release was stable. Roger

Re: [R-sig-Geo] Variable importance bar plot

2019-10-29 Thread Sarah Goslee
It's not entirely clear to me how you expect the values to be calculated, but you might look at partial dependence plots, for example as implemented in the pdp package. Sarah On Sun, Oct 27, 2019 at 6:00 AM Enoch Gyamfi Ampadu wrote: > > Dear List, > > I hope this finds you well. Please I have d

Re: [R-sig-Geo] Variable importance bar plot

2019-10-29 Thread Bede-Fazekas Ákos
Dear Enoch, randomForest:varImpPlot() has a parameter called 'class' that is NULL by default but can be changed to get the class-specific measure of importance. 'geom= "bar"': do you want to plot the result using ggplot2 instead of the base plot produced by varImpPlot()? In this case you should

Re: [R-sig-Geo] Segmentation fault

2019-10-29 Thread Eduardo Diez
The OS was part of my initial post: > sessionInfo() R version 3.6.1 (2019-07-05) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 18.04.3 LTS But nevermind, I'll stop posting here. Thanks El mar., 29 oct. 2019 09:21, Roger Bivand escribió: > On Tue, 29 Oct 2019, Eduardo Diez wrote

Re: [R-sig-Geo] Plotting median values globally

2019-10-29 Thread rain1290--- via R-sig-Geo
Hi Vijay and others, Thank you so, so much for this reply!! Yes, this worked, just as you suggested. Just one little detail that I wanted to know - I was trying to change the color range of my plot, like this: mapTheme<-rasterTheme(region=rev(brewer.pal(10,"Spectral"))) cutpoints<-c(200,175,150,1

Re: [R-sig-Geo] Plotting median values globally

2019-10-29 Thread Bede-Fazekas Ákos
Hello, It is because the wrong place of the closing bracket. This might work, since margin, at, cuts etc. are the parameters of levelplot(9 not raster(): levelplot(raster(RCP1pctCO2Median,61), margin=F,at=cutpoints,cuts=11,pretty=TRUE,par.settings=mapTheme, main="Median values") HTH, Ákos 201

Re: [R-sig-Geo] Installation of proj4 v6 on Ubuntu 18.04 Error: proj/epsg not found

2019-10-29 Thread Tomislav Hengl
I get: $ pkg-config proj --libs -lproj $ pkg-config proj --cflags *empty output On 10/29/19 2:01 PM, Edzer Pebesma wrote: Would you mind giving the ouptut of: pkg-config proj --libs pkg-config proj --cflags and also try: install.packages("rgdal", repos="http://R-Forge.R-project.org";)

Re: [R-sig-Geo] Variable importance bar plot

2019-10-29 Thread Enoch Gyamfi Ampadu
Hi Sarah, Thank you for getting in touch and providing a suggestion. I have checked but that is not what want actually. I want to have a vertical bar plot depicting how each variable contrite to predicting the class. I used 8 bands of landsat image. So let's say if one of the land cover class

Re: [R-sig-Geo] Plotting median values globally

2019-10-29 Thread rain1290--- via R-sig-Geo
Hi Akos and everyone,  Thank you so much, as well! Yes, this worked very well - I cannot believe it was just a bracket that was misplaced that caused that! Many thanks, once again, for your help - it was extremely valuable and, thus, much appreciated! -Original Message- From: Bede-Fazek

Re: [R-sig-Geo] Segmentation fault

2019-10-29 Thread Roger Bivand
On Tue, 29 Oct 2019, Eduardo Diez wrote: The OS was part of my initial post: sessionInfo() R version 3.6.1 (2019-07-05) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 18.04.3 LTS But nevermind, I'll stop posting here. Please do raise the issue; it's the proper place for inst