Displaying 20 results from an estimated 10000 matches similar to: "Controling the x or y limit"
2006 Feb 13
2
R-help, specifying the places to decimal
Hello - R-experts,
Is there any way with which we can specify the number after
decimal point to take. Like I have a situation where
the values are comming 0.160325923 but I only want
4 place to decimal say 0.1603. Is there any way for that.
I am no expert in R- and this may sound simple to many.sorry
Thanks for any help.
With Regards
Subhabrata
2005 Dec 09
3
R-how to group the data
Hello R - users,
This may sound simple to may people:
I have a list of data as follows
type value
y 7
y 7
y 8
y 8
y 8
y 9
y 9
y 9
y 9
y 10
y 10
y 10
y 10
y 11
y 11
y 12
y 12
y 14
y 14
y 14
y 15
y 17
y 20
y 20
y 20
y 20
y 25
2005 Dec 07
1
ploting the two sets of data side by side
Hello R-users,
I am new to R-commands.
I have two sets of data:
x <- c(7, 7 , 8, 9, 15, 17, 18)
y <- c(7, 8, 9, 15, 17, 19, 20, 20, 25, 23, 22)
I have used 'cut' command to seperate them as follows
a <- cut(x, breaks =c(0,5,10,20,25,30))
b <- cut(y, breaks =c(0,5,10,20,25,30))
> table(a)
a
(0,5] (5,10] (10,20] (20,25] (25,30]
0 4 3 0
2005 Dec 24
2
grouping data
Hello R-users/experts,
I am new to R-
I have a simple question:
Let say I have a data set as follows
temp:[file attached]
the data structure is a follows:
sex age
female 28
female 53
female 53
female 36
male 42
male 29
male 43
male 36
male 41
Here we are grouping all male value into male and all female value in to
female
2005 Oct 21
2
Finding the neighbors of the point
Dear all,
I got point data of trees. I was wondering if anybody has experience in searching the neighbors within a specified distance efficiently.
X Y Z
99 34 65
98 35 29
98 34 28
99 33 33
98 32 23
99 33 21
99 33 22
99 32 24
99 30 23
...
What I want to do is : searching for the neighbors with a distance R for each tree & the neighbor must have a bigger Z.
2018 Nov 10
2
Fedora 29 upgrade: texlive-scheme-medium may depend on R (texlive-includernw)
On Sat, 10 Nov 2018, I?aki Ucar wrote:
> On Sat, 10 Nov 2018 at 15:17, Roger Bivand <Roger.Bivand at nhh.no> wrote:
>>
>> On upgrading my F28 to F29, I've found that R-core and a number of R
>> packages:
>>
>> R-evaluate R-glue R-highr R-knitr R-magrittr R-markdown R-mime R-stringi
>> R-stringr R-yaml
>>
>> are installed, although I
2005 Dec 06
2
urgent
Hello R Users,
I have two sets of values
x <- c(7, 7 , 8, 9, 15, 17, 18)
y <- c(7, 8, 9, 15, 17, 19, 20, 20, 25, 23, 22)
I am able to create multi histogram using
multhist(). But not able to control the 'xlim'.
ie the xaxis is showing 7.5, 13, 18, 23
1st on what basis it is calculated
2nd I want it to be like 7 8 9 15 17 and so on
Can any one help me
With Regards
Subhabrata
2018 Nov 10
2
Fedora 29 upgrade: texlive-scheme-medium may depend on R
On upgrading my F28 to F29, I've found that R-core and a number of R
packages:
R-evaluate R-glue R-highr R-knitr R-magrittr R-markdown R-mime R-stringi
R-stringr R-yaml
are installed, although I only ever install R from source and always keep
my Rs locally. So I don't use Fedora R rpms, but these were installed
without my command.
Something in texlive is doing this. A remedy is to
2010 Feb 19
3
Date label lost while inverting y axis.
Good morning,
I am currently displaying a time series with the time on the Y axis, and the
values on the X axis.
The problem is that I wanted to reverse the Y axis (that is, to have the
latest date the closest to the X axis).
So I looked for a way to do this on this mailing list and I found a
response: inverting the ylim parameter of the plot.
I did it, the data are displayed correctly, but now
2005 Jun 09
1
Using transform on spproj package.
Hi,
I'm trying to use transform my mercator locations into utm but I'm doing
something wrong because only x is transformed ... see
> xy.sp
SpatialPoints:
loni lati
[1,] -8.85 38.16
[2,] -9.19 37.99
[3,] -9.11 37.97
[4,] -9.06 38.15
[5,] -9.03 37.87
[6,] -9.14 37.81
[7,] -9.09 37.70
[8,] -8.95 37.45
[9,] -9.17 37.37
[10,] -9.00 37.34
Coordinate Reference
2006 Apr 25
3
persp plot increasing 'x' and 'y' values expected
hello,
i do the following in order to get an persp-plot
x<-c(2,2,2,2,2,2,3,3,3,3)
y<-c(41,41,83,83,124,166,208,208,208,208)
z<-c(90366,90366,92240,92240,92240,96473,100995,100995,100995,100995)
x<-data$x
y<-data$y
z<-matrix(data$z,length(y),length(x))
persp(x,y,z, col="gray")
but i always get the error message increasing 'x' and 'y' values
expected,
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
2006 Oct 07
3
merge and polylist
Greetings:
I would like to kindly ask for a little help. The rough code is:
#________________________________________________________
dat=data.frame(read.delim(file="all.txt", header = TRUE, sep = "\t",
quote="\"", dec=".",na.strings = "NA"))
nc=read.shape("astae.shp", dbf.data=TRUE, verbose=TRUE)
mappolys=Map2poly(nc)
submap
2006 Nov 28
2
Aligning aerial photographs and maps
I have read in Paul Murrell's book R Graphics about how to use a bitmap
as background for a plot (page 107). Also, I routinely use function
read.shape() in package maptools to read maps in shapefile format. Now,
I would like to overlay an aerial photograph in .jpg format and a map. I
think I could do the alignment manually for each case, but wonder if
there is a better, automated way. I notice
2015 Jan 16
2
[R-sig-Geo] Error installing 'rgdal' on Centos 7
Hello Roger:
Thank you for your email.
Some details for the problem.
This is the message of the console in R:
------------------
install.packages("rgdal")
Installing package into
?/home/aliendist/R/x86_64-redhat-linux-gnu-library/3.1?
(as ?lib? is unspecified)
probando la URL 'http://cran.rstudio.com/src/contrib/rgdal_0.9-1.tar.gz'
Content type 'application/x-gzip'
2006 Mar 21
3
transform shapefiles in UTM to lat/long
Dear all:
I have a shapefile in UTM coordinate system and I would like to transform it
to Lat/Log coordinates (WSG84). The package PBSmapping contains function
convUL to transform between the two coordinate systems when data is in the
form of a data frame with attributes specifying the coordinate system.
However, when shapefiles are imported using function read.shape (package
maptools), a list
2006 Feb 09
1
Shapefiles
Dear List,
I have examined the sp, maptools, and shapefiles packages (Windows) but
cannot seem to figure out a solution for writing shapefiles for 'curvy
shapes'. The scenario is that I generate a series of polygons, circles, and
ellipses on a plot and would like to convert them to shapefiles. Since the
circles and ellipses are do not return a coordinate list during the plotting
2006 Feb 20
2
help on dyn.load()
Hi,
I used .C to call the C functions inside R. Everything works fine on the
linux sever.
I installed cygwin on my windows xp x64 platform and used rcmd shlib xxx.c
to compile. Everything works fine till now and xxx.dll is generated. But
when I use dyn.load("xxx.dll") in R, it will open another R window and the
original R window becomes "Not responding", nothing loaded in
2008 Aug 01
1
bug in readRAST6 function in package spgrass6
Hi
if I try to import a raster layer which consists only of NULL values
from grass by using the readRAST6, I get an error message:
> readRAST6("HSericea_seedsDisperse_2007")
ERROR: Invalid value for null (integers only)
Error in readBinGrid(rtmpfl11, colname = vname[i], proj4string = p4,
integer = to_int) :
no such file:
2008 Jan 14
2
knnFinder package
Dear all,
I have found some serious bugs in the knnFinder package (which supports
data structures and algorithms for both exact and approximate nearest
neighbor searching in arbitrarily high dimensions) that may trigger
segmentation faults.
I have fixed them but I had troubles to contact its maintainer Samuel E.
Kemp (previously with the University of Glamorgan, UK). Do someone know
where I