Displaying 20 results from an estimated 10000 matches similar to: "Expression in plot text"
2001 Dec 12
1
can't vectorize an expression
Dear R support network
I have a problem that is driving me crazy.
I have a dataframe with about 74000 landscapes which I call "land". A
landscape is a 2km -by- 2km square.
Land has three columns: land$lat, land$long, and land$description.
The last one holds a NON-unique (integer) description of each
landscape. There are maybe 100 distinct descriptions. Identifying
landscapes that
2000 Sep 14
2
Background color with jpeg and png devices
If I change the background color of a plot, with par(bg="red") for example, I
get a plot with a red background when I use the postscript or X11 devices.
With the png or jpeg devices, the background is white.
Is this the intended behavior, or a bug? Is there anyway to get a non-white
background with the png device? I'm using R-1.1.0 on Linux.
2012 Oct 30
2
issues with krige function
Greetings all,
Ran into a strange problem with the krige function from geoR. The
problem that I am having is that while the krige function seems to
work well, the resulting predicted values are all NAs. Given the size
of the datasets I am working with can't attach it, but I can provide
snippets of the datasets.
> casedata
station year month day obs mpe bias type
2018 Jan 19
1
Leaflet maps. Nudging co-incident markers
I have a dataset showing points, with a category for each point and its location.
I simply want to display my points, in a way that users can toggle the points on and off by category.
Where I have two objects in the same category I'd like to display them nudged to appear as two distinct, but very close points.
I have made reproduceable example (the places are not real), which is loosely
2000 Sep 19
3
getting lines with non-rounded caps?
I'm trying to get a plot with wide lines that don't have rounded end caps.
You can see the effect quite clearly with a plot like this:
plot(0:1)
lines(c(1.5,1.5),c(0,.5),lwd=20,col="red")
lines(c(1.5,1.5),c(.5,1),lwd=20,col="green")
abline(h=0)
abline(h=0.5)
abline(h=1)
The colored lines should be between the horizontal lines, but because of the
rounded end caps,
2006 Apr 27
2
add city and point in the map
Dear Helpers:
I'm trying to use packages "maps" and "mapdata" (see blow) to display the research resutls on map (Mid-Atlantic region). In particular, I need to mark a number of points in the map by giving their latitude and longitude information. For instance, I would like to mark a point on (long, lat) =(75.56027, 39.09271). Also, I need to mark several cities that I
2000 Aug 29
1
variable value in mathplot
I'm putting a title over different plots, where 'that'
varies. How do I make the value appear? Example:
that <- 1
plot(1:10)
title(expression(paste(hat(theta),'= ',that)))
Yudi Pawitan yudi at stat.ucc.ie
Department of Statistics UCC
Cork, Ireland
Ph 353-21-490 2906
Fax 353-21-427 1040
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2013 Jan 14
4
How to open grib file in R?
I have this https://echange-fichiers.inra.fr/get?k=6TdTdezNeZwAqJtpwVm
grib file which is a regular lat-lon 0.25x0.25 degrees and contains 4 fields
.
I tried to open it using :
grib <-
readGDAL("C:\\Users\\aalyaari\\Desktop\\Vol_025_H14_2010060700.grib")
but I got this error:
C:\Users\aalyaari\Desktop\Vol_025_H14_2010060700.grib has GDAL driver GRIB
and has 721 rows and
2004 Aug 22
1
latitude longitude data
Dear R-helpers,
I get GPS readings with bug counts (bugs meaning
insects in this case) made along rows in crop fields
and use these to make maps of bug distribution. The
GPS readings are not quite accurate enough for my
purpose, so since I know what row each reading is made
in, I adjust the latitudinal coordinate using:
grd<-lm(lat~lon+Row,data)
2009 May 20
1
combining xYplot with map
I'm using xYplot to create a bubble plot of values that I'd like to
visualize on top of a filled-in map of the coast, but I'm too much of a
lattice (which I understand xYplot is built on) and mapping newbie to
figure out how to begin to make this happen. Below is some sample code
that doesn't work but illustrates my goal. Any pointers anyone has
would be much appreciated.
2001 Feb 08
2
dnbinom(,size<1,)=0 (PR#842)
This came up on r-help but indicates a bug.
dnbinom(x,n,p) calls dbinom_raw(n-1,...)
which returns 0 for n<1.
-thomas
---------- Forwarded message ----------
Date: Thu, 08 Feb 2001 17:10:23 +0000
From: Yudi Pawitan <yudi@stat.ucc.ie>
To: Mark Myatt <mark@myatt.demon.co.uk>
Cc: R-Help <r-help@stat.math.ethz.ch>
Subject: Re: [R] Goodness of fit to Poisson / NegBinomial
2003 Jul 30
3
nested for() loops for returning a nearest point
I'm trying to do the following:
For each ordered pair of a data frame (D1) containing longitudes and
latitudes and unique point IDs, calculate the distance to every point in
another data frame (D2) also containing longitudes, latitudes and point
IDs, and return to a new variable in D1 the point ID of the nearest
element of D2.
Dramatis personae (mostly self-explanatory):
D1$long
2011 Jan 20
1
Generating time progressing line for Google Earth
Dear,
I am trying to visualise a time-progressing line (it's supposed to
represent spread patterns) using brew package and Google Earth.
The idea is to have a function which takes start and end point
geographic coordinates, as well as number of intervals to chop the path
up, and returns the collection of points segmenting this line.
Unfortunately my calculations fail for large distances,
2010 Oct 20
1
help identifying clusters
Dear list:
I have a dataset of geographical data that looks like this example data:
dat<- data.frame( lon = c(rnorm(1000, mean=-10), rnorm(1000, mean=10),
rnorm(1000, mean=5)),
lat = c(rnorm(1000, mean=40), rnorm(1000, mean=30), rnorm(1000, mean=0)))
plot(dat$lon, dat$lat)
My positions are clearly clustered (in this example there are 3 clusters).
Is there any R algorithm that
allows me to
2000 Jul 25
1
NetCDF data?
Does anyone know of a module for R to access NetCDF datasets? I remember
reading about a module for Splus, but I can't seem to find anything on CRAN.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the
2005 Sep 15
4
Error in vector("double", length) : vector size specified is too large....VLDs
I have what R seems to consider a very large dataset, a 12MB text file of
lat,long,and height values, 130,000 rows to be exact.
Here's what I get:
Thomas Colson
North Carolina State University
Department of Forestry and Environmental Resources
(919) 673 8023
tom_colson at ncsu.edu
Calendar:
www4.ncsu.edu/~tpcolson
2012 Nov 20
2
[lattice] how to overlay a geographical map on a levelplot?
r-help lattice adepts:
I have a question which is somewhat geospatial, so I posted to r-sig-geo
rather than here:
https://stat.ethz.ch/pipermail/r-sig-geo/2012-November/016757.html
> summary: How to overlay a geographical map on each panel in a lattice
> (or Trellis), e.g., of levelplot's? Note I am not inquiring about
> creating choropleth maps[,]
which Sarkar 2008 covers quite
2006 Feb 09
1
converting lat-long coordinates to Albers Conical Equal Area coordinates
####################################################################################
We have used maptools to construct state, county, township, census-tract,
and zipcode
level R maps with an Albers Conical Equal Area projection. We would like
to be able to
plot the location of weather stations or other point locations on the
maps. The data
the point locations are in latitude-longitude units
2005 Jan 14
1
how to produce 2-d color plots in R
Hello 'R' Users,
I am very new on 'R', so excuse me if I ask something wrong.
I have ASCII data and the colums of the data are looks like :-
!-------------------------
time,yr,mo,dy,hr,min,sec,lat,lon,ht,co2obs,sigma,co2model
--
-
--
!----------------------------
Each column has data value. Now I want to produce 2-d color maps,
for example the plot should look like :-
on
2010 Oct 29
2
doubt in climate variability analysis in R!
Hello all,
I am trying to use "clim.pact" package for my work, but since this is the beginning for me to use gridded datasets in "R", I am having some trouble.
I want to do seasonal analyses like trends, anomalies, variograms, EOF and probably kriging too to downscale my 1 degree gridded data to 0.5. So, as a first step, I compiled my entire dataset (with 25