Re: [R] Creating map in R

2019-11-21 Thread Jeff Newmiller
If you READ the Posting Guide mentioned at the bottom of each post you would know that there is a more appropriate mailing list for questions about maps and R where experts in that topic hang out. On November 22, 2019 3:54:33 AM GMT+01:00, Medic wrote: >Creating map in R. I have all the files (

[R] Creating map in R

2019-11-21 Thread Medic
Creating map in R. I have all the files (with different extensions) for the country I need. The problem is that I don’t know how to use them in R. I began according to information on the Internet, and immediately ran into difficulties (see below): `library("tmaptools") geo <- read_shape("Rom.shp",

Re: [R] Read shp file

2019-11-21 Thread Michael Hannon
I can't help you locate the .shx file, but the gist of it is that a "shapefile" actually requires a minimum of three files: https://knowledge.autodesk.com/support/autocad-map-3d/learn-explore/caas/sfdcarticles/sfdcarticles/Required-files-that-make-up-a-shapefile.html The .shx file is an index of

[R] Read shp file

2019-11-21 Thread Medic
Help me. pls, to read .shp file. `library("tmaptools") geo <- read_shape("Rom.shp", as.sf = TRUE) This function is deprecated and has been migrated to github.com/mtennekes/oldtmaptools` I have to turn to another function, but I get an unclear message `library(raster) geo <- shapefile ("Rus.shp")

[R] Datetime in doubly y-axis plot: Solved

2019-11-21 Thread Ogbos Okike
Dear Jim and Petr, Thank you. The last code by Jim worked like magic. A great relief. Thank you very much. Best wishes Ogbos On Thu, Nov 21, 2019 at 10:59 AM Jim Lemon wrote: > > Hi Ogbos, > As Petr says, you can use twoord.plot for this: > > dta<-read.table(text="year month day hour Li CR x1 x

Re: [R] Datetime in doubly y-axis plot

2019-11-21 Thread PIKAL Petr
Hi Why you do not use twoord.plot from plotrix which should be designed for such issue. Something like twoord.plot(lx = Year, ly = Li, rx = Year, ry= CR, data=yourdata) Cheers Petr > -Original Message- > From: R-help On Behalf Of Ogbos Okike > Sent: Thursday, November 21, 2019 9:49 AM

[R] Datetime in doubly y-axis plot

2019-11-21 Thread Ogbos Okike
Dear Members, I have some hourly data. Usin: dta$year <- with( dta, ifelse(year < 50, year + 2000, year + 1900)) dta$datetime <- with( dta, as.POSIXct(ISOdatetime(year, month,day,hour,0,0))) I converted the hour to time format and stored in Year. The data consists of two different observations and