Displaying 20 results from an estimated 400 matches similar to: "Overlaying two plots"
2009 Apr 06
1
political maps world maps in R, wrld_simpl
dear all,
I'm a newbie in map tools. I was asking to perform an apparently very
simple task.
I have a list of countries (about fifty all over in the world) scored
with a real positive value. Eg
Country score
Italy .56
UK .58
Korea .41
Mexico .63
...
I wish to plot geographical maps where every country is filled with a
color depending on his score.
Using maptools library and
2011 Aug 15
1
ggplot in a function confusion!
Whats going on here?
df<-data.frame(x=1:10,y=1:10)
ggplot()+geom_point(data=df,aes(x=x,y=y)) ## this is the normal usage
right?
ggplot()+geom_point(data=df,aes(x=df[,1],y=df[,2])) ## but I can also feed
it column indices
ggplot()+geom_point(aes(x=df[,'x'],y=df[,'y'])) ## or column names.
## but if i wrap it in a function...
plot.func.one<-function(dff,x.var,y.var){
2017 Jun 07
1
Errors running spdplyr example
Dear All,
When I tried to run the following code (taken from the *spdplyr* package
vignettes):
library(spdplyr)
library(maptools)
data(wrld_simpl)
worldcorner <- wrld_simpl %>%
mutate(lon = coordinates(wrld_simpl)[,1], lat =
coordinates(wrld_simpl)[,2]) %>%
filter(lat < -20, lon > 60) %>%
dplyr::select(NAME)
I got the following error messages:
Error in (function (cl,
2011 Jun 07
1
variable selection in linear regression
Hello
With due respect, have a nice time. I would like to ask some command in R.
It is regarding variable selection in linear regression.
In R, there is one rebuild function called "step" which
selecting variables according to AIC.
let say i have data [y, x1,x2,x3,x4]
we start with y~b0
i compute the partial F test and choose the variable
with maximum partial F to enter the
2008 Mar 13
3
Splitting a set of vectors in a list
I have a set of character vectors of uneven length
that I have stored in a list. I can easily enough get
any column of them using lapply but what I want is to
be able to create a matrix of them. Other than some
kind of brute force looping approach I have drawn a
blank.
Would somebody please suggest something? Thanks
Example.
mylist <- list(aa=c("cat","peach" ),
2011 Jul 28
0
_: how to replace values in x by means in subgroups created in ...(not loops)
Re:_: how to replace values in x by means in subgroups created in ...(not loops)
Thanks, below some code and reply:
#_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_#
#-------------------------------------------------------
# my slow function with loops:
# replace_x_by_locallyMean_x_4_0s_in_y.f(x,y)
#-------------------------------------------------------
2009 Nov 25
0
Possible bug in "unsplit" (PR#14084)
Dear R-bug-people
I have encountered a problem with "unsplit", which I believe may be
caused by a bug in the function. However, unexpericend with bug-reports
I apologise if this is barely a user problem rather than a problem
within R.
The problem occurs if an object is split by several grouping factors
with levels not occuring in the data, and using drop = TRUE. This may
appear as
2019 Jun 09
2
como graficar una coordenada en un mapa
Hola a todos.
Soy nuevo en R, estoy aprendiendo con tutoriales y lo hago sin un fin
comercial y/o laboral.
Necesito ayuda para mostrar un mapa y sobre ese mapa poner un punto dado
por una coordenada.
con esto consigo mostrar el mapa.
library(raster)
arg<-getData('GADM', country='ARG', level=0)
plot(arg)
En ese mapa quiero mostrar un punto que está en el sistema de
2008 Apr 01
4
NEW: Sociolects in R
The R translation teams have done a great job in making R usable for
people who do not have English as their mother tongue. However, even
within English speaking countries, there are groups which have trouble
with the language, and it may be valuable to support the Sociolects of
these groups too.
Thanks to a generous contribution from Lars Polifo, these features will
be made available in an
2000 Mar 13
0
listing shares
I don't know what I have changed, NT does not list the shares
anymore!! I can access them by directly connecting
to \\SERVER\share but cannot browse them!! Win98 does just fine!
Which option is the problem??
Here's a snipped of my config:
[global]
keep alive = 30
log file = /var/log/smbd.log
lock directory = /var/lock/samba
bind interfaces only = yes
interfaces = eth0
interfaces =
2012 Oct 21
1
[newbie] failure to plot a RasterLayer with raster::plot or fields::image.plot
summary: spatial data to be input to a regional-scale environmental
model must (1) be converted to netCDF and then (2) "regridded" (cropped,
projected, increased resolution). In a public git repository
https://github.com/TomRoche/GEIA_to_NetCDF
I have R code (with bash drivers) that does the conversion step, and
plots the converted output, apparently correctly. However attempts to
plot
2011 Nov 04
4
How to delete only those rows in a dataframe in which all records are missing
Hi,
Imagine I have the following data frame:
> a <- c(1,NA,3)
> b <- c(2,NA,NA)
> c <- data.frame(cbind(a,b))
> c
a b
1 1 2
2 NA NA
3 3 NA
I want to delete the second row. If I use na.omit, that would also affect the third row. I tried to use a loop and an ifelse clause with is.na to get R identify that row in which all records are missing, as opposed to the first
2012 Oct 04
1
Ops.factor(point1, point2) : - not meaningful for factors
Hi, can anyone help me in this problem :(. I am a total beginner in R
software. It took me 2 days just to look into this problem. Due to this
problem. I cant do looping. i want to find the distance between x and DSi
> DSi
i Si
1 1 (5, 20)
2 2 (20, 2)
3 3 (25, 32)
4 4 (8, 39)
5 5 (10, 17)
6 6 (35, 20)
7 7 (38, 10)
> str (DSi)
'data.frame': 7 obs. of 2 variables:
$ i
2006 Nov 05
3
struggling to plot subgroups
Hi Folks,
I have data that looks like this:
freq gender xBar
1000 m 2.32
1000 f 3.22
2000 m 4.32
2000 f 4.53
3000 m 3.21
3000 f 3.44
4000 m 4.11
4000 f 3.99
I want to plot two lines (with symbols) for the two groups "m" and
"f". I have tried the following:
plot(xBar[gender=="m"]~freq[gender=="f"]) followed by
2019 Mar 19
2
Como generar el dibujo de un mapa, tipo los de maptools::data(wrld_simpl)
Muchas gracias, Carlos.
Estaba emperrado con usar OSM. Pero sevuramente los de Google presentaran
alguna solucion.
Intento probar pronto.
Juan Abasolo.
telefomotik, barjatu trebezi falta
Carlos Ortega <cof en qualityexcellence.es> igorleak hau idatzi zuen (2019
mar. 19, ar. 23:13):
> Hola,
>
> No sé si esto seguirá siendo vigente, con los cambios en las APIs de
> Google...
2012 Jul 03
1
how to plot the data in a map?
hi R-users:
I have some data related with geographical information.
I wonder how to plot some data (in contour,shaded or scatter) on a map.
Could anyone tell me which package or reference or examples I can learn
?
thank you .
--
TANG Jie
Email: totangjie@gmail.com
[[alternative HTML version deleted]]
2002 Jun 26
1
w2k sp2 + ntconfig.pol
On Wednesday 26 June 2002 08:55, you wrote:
> Hi,
>
> I'm using win2k + sp2 and the policies are still being applied. The
> Ntconfig.POL file is in the netlogon directory with root.root -rwxr-xr-x
> (755).
>
> I hope this helps
What exact version of samba are you running?
Did you join the domain *before* or *after* you installed sp2?
Could you send me the netlogon
2000 Mar 10
0
can't browse PDC
We've set up Samba as PDC and for some reasons
some users can't browse the for the shares anymore!
(Worked fine for more than 2 months!)
"windows alert: \\KURN\ not available, access denied"
Any automatic reconnected net volumes work fine.
There's nothing strange in the log file (except
"call_nt_transact_ioctl: Currently not implemented"
but that was there before)
2020 Feb 27
0
Samba AD - Different IP than the existing one assigned
Hi, Thanks for helping.
Answers in line :
Hi,
I want to use samba as AD.
everything seemed to be ok so far with the install and the config.
STATUS=daemon 'smbd' finished starting up and ready to serve connections
Feb 27 10:34:03 ip-1XX winbindd[22083]: [2020/02/27 10:34:03.002858, 0]
../lib/util/become_daemon.c:124(daemon_ready)
Feb 27 10:34:03 ip-1XX winbindd[22083]:
2019 Mar 19
2
Como generar el dibujo de un mapa, tipo los de maptools::data(wrld_simpl)
Buenas!
Estoy intentando hacer un trabajo con mapas y llegué a un punto en el que
me atasco:
Quiero generar el dibujo de un mapa.
A ese mapa después le señalaría unos puntos y en, base a esos puntos,
dividiría el mapa en secciones (usando diagramas Voronoi, que creo que
sabría hacerlo, por más que todavía me quedan raro)
Todavía lo que sé hacer es muy ínfimo (marcar puntos y etiquetar con