Re: [R] sort() depends on locale

2014-06-15 Thread Pascal Oettli
Hello, Please provide your sessionInfo(). I don't see this issue with R 3.1.0 Patched on Linux. Regards, Pascal On Sun, Jun 15, 2014 at 2:15 PM, Marius Hofert marius.hof...@math.ethz.ch wrote: Hi, If I use invisible(Sys.setlocale(LC_COLLATE, C)) in ~/.Rprofile, then sort(c(L.Y, Lu, L.Q))

Re: [R] sort() depends on locale (and platform and build)

2014-06-15 Thread Prof Brian Ripley
On 15/06/2014 07:45, Pascal Oettli wrote: Hello, Please provide your sessionInfo(). I don't see this issue with R 3.1.0 Patched on Linux. Nor on any of my platforms. We would also need to know if ICU was found when R was installed: see ?Comparison . Regards, Pascal On Sun, Jun 15, 2014

Re: [R] How to draw Bubble chart with mini pie charts as bubbles

2014-06-15 Thread Karl Ropkins
Dear Amir, There are a couple of panel functions in loa, a package of lattice add-ins, that might be of help: require(loa) # Use a subsample of lat.lon.meuse dataset in loa temp - lat.lon.meuse[sample(1:155, 15),] # plot Cu/Pb/Zn pie plots at sampling locations

Re: [R] sort() depends on locale

2014-06-15 Thread Duncan Murdoch
On 15/06/2014, 1:15 AM, Marius Hofert wrote: Hi, If I use invisible(Sys.setlocale(LC_COLLATE, C)) in ~/.Rprofile, then sort(c(L.Y, Lu, L.Q)) [1] L.Q L.Y Lu whereas using invisible(Sys.setlocale(LC_COLLATE, en_US.UTF-8)) results in sort(c(L.Y, Lu, L.Q)) [1] L.Q Lu L.Y I know this

Re: [R] sort() depends on locale

2014-06-15 Thread Prof Brian Ripley
On 15/06/2014 12:16, Duncan Murdoch wrote: On 15/06/2014, 1:15 AM, Marius Hofert wrote: Hi, If I use invisible(Sys.setlocale(LC_COLLATE, C)) in ~/.Rprofile, then sort(c(L.Y, Lu, L.Q)) [1] L.Q L.Y Lu whereas using invisible(Sys.setlocale(LC_COLLATE, en_US.UTF-8)) results in sort(c(L.Y,

Re: [R] Output for Boot function in Car package

2014-06-15 Thread John Fox
Dear David and Dan, Yes, the column labelled bootMed is the median of the bootstrapped values. As it turns out, this isn't documented in the help for the car package, nor in the on-line appendix on bootstrapping from the CAR book. It's easy, however, to print car:::summary.boot to see the

[R] abline; setting plot limits

2014-06-15 Thread Paul Rydelek
Relatively new user with a question regarding abline. I want to draw a st. line fit to some data but I want the line to span the range of the x-data and NOT the plot limits. In short the line spans xmin to xmax(of plot axis) but I want it to span xmin to xmax (of x data). Can this but done with

Re: [R] How to draw Bubble chart with mini pie charts as bubbles in R

2014-06-15 Thread Agony
Hi Jim, Very great help. Bunch of thanks. Yours, Amir On Sun, 6/15/14, Jim Lemon j...@bitwrit.com.au wrote: Subject: Re: [R] How to draw Bubble chart with mini pie charts as bubbles in R To: r-help@r-project.org Date: Sunday, June 15, 2014, 5:10

[R] imlib2, pixmap?

2014-06-15 Thread Greg Minshall
hi. i'm doing some statistical analysis on image files. the pixmap package is great, but has the limitation that it is only able to read (and write) data in PNM format. there's a nice unix/linux/... library known as imlib2 that is able to read and write image data in many different formats.

[R] Problem with converting a list of grids to a list of polygons

2014-06-15 Thread TypeTwo
Hi. For a spatial analysis (its visualization) I need to produce a map of conditions and traits. When I used SpatialPixelsDataFrame (sp package) my grid cells were regular and between each row was a small gap, which is not only messy but incorrect. So I generated the coords of each grid from

Re: [R] abline; setting plot limits

2014-06-15 Thread Duncan Murdoch
On 14/06/2014, 11:34 PM, Paul Rydelek wrote: Relatively new user with a question regarding abline. I want to draw a st. line fit to some data but I want the line to span the range of the x-data and NOT the plot limits. In short the line spans xmin to xmax(of plot axis) but I want it to span

Re: [R] sort() depends on locale (and platform and build)

2014-06-15 Thread Marius Hofert
Hi, Thanks for you help. I use R-devel under Ubuntu 14.04, here is the output of sessionInfo(): sessionInfo() R Under development (unstable) (2014-06-02 r65832) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8

Re: [R] sort() depends on locale (and platform and build)

2014-06-15 Thread Prof Brian Ripley
On 15/06/2014 17:34, Marius Hofert wrote: Hi, Thanks for you help. I use R-devel under Ubuntu 14.04, here is the output of sessionInfo(): sessionInfo() R Under development (unstable) (2014-06-02 r65832) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8

Re: [R] sort() depends on locale (and platform and build)

2014-06-15 Thread Marius Hofert
Hi, ... so something like this? [in foo.R] old.coll - Sys.getlocale(LC_COLLATE) Sys.setlocale(LC_COLLATE, locale=C) do_your_sorting_here Sys.setlocale(LC_COLLATE, locale=old.coll) Cheers, Marius __ R-help@r-project.org mailing list

Re: [R] abline; setting plot limits

2014-06-15 Thread David L Carlson
You can also use clip() before abline(): x - rnorm(25) y - rnorm(25) plot(y~x) clip(min(x), max(x), min(y), max(y)) abline(lm(y~x)) But the clipping region will affect anything else you add to the plot after the clip command. In package plotrix, ablineclip() sets and resets the clipping

[R] reading time series csv file with read.zoo issues, then align time stamps

2014-06-15 Thread Henry
Goal: get time series data interpolated on to desired time stamps. I have two or more data sets that have time stamps that vary from 5 mins to 3-5 hours. I want to get all the data put on common time stamps e.g. 00:05:00 intervals. I asked Gabor and got some very good code ( zoo aggregate,

Re: [R] reading time series csv file with read.zoo issues, then align time stamps

2014-06-15 Thread Gabor Grothendieck
index = 1:2 is missing. On Sun, Jun 15, 2014 at 2:39 PM, Henry hcco...@lbl.gov wrote: Goal: get time series data interpolated on to desired time stamps. I have two or more data sets that have time stamps that vary from 5 mins to 3-5 hours. I want to get all the data put on common time stamps

Re: [R] abline; setting plot limits

2014-06-15 Thread Rolf Turner
On 15/06/14 15:34, Paul Rydelek wrote: Relatively new user with a question regarding abline. I want to draw a st. line fit to some data but I want the line to span the range of the x-data and NOT the plot limits. In short the line spans xmin to xmax(of plot axis) but I want it to span xmin to

Re: [R] abline; setting plot limits

2014-06-15 Thread Jim Lemon
On Mon, 16 Jun 2014 08:54:41 AM Rolf Turner wrote: On 15/06/14 15:34, Paul Rydelek wrote: Relatively new user with a question regarding abline. I want to draw a st. line fit to some data but I want the line to span the range of the x-data and NOT the plot limits. In short the line

Re: [R] abline; setting plot limits

2014-06-15 Thread Rolf Turner
On 16/06/14 12:35, Jim Lemon wrote: On Mon, 16 Jun 2014 08:54:41 AM Rolf Turner wrote: On 15/06/14 15:34, Paul Rydelek wrote: Relatively new user with a question regarding abline. I want to draw a st. line fit to some data but I want the line to span the range of the x-data and NOT the plot

[R] Help with SEM package - model significance

2014-06-15 Thread Bernardo Santos
Dear all,  I used sem function from the package SEM to fit a model. However, I cannot say if the model is correspondent to the data or not (chisquare test). I used the commands: model1 - specifyModel() estadio - compflora, a1, NA estadio - compfauna, a2, NA estadio - interacoesobs, a3, NA

[R] prediction based on conditional logistic regression clogit

2014-06-15 Thread array chip
Hi, I am using clogit() from survival package to do conditional logistic regression. I also need to make prediction on an independent dataset to calculate predicted probability. Here is an example: dat - data.frame(set=rep(1:50,each=3), status=rep(c(1,0,0),50), x1=rnorm(150,5,1),

Re: [R-es] pregunta

2014-06-15 Thread Jorge I Velez
Hola Jose, Me funciona perfectamente: install.packages('ergm') #--- Please select a CRAN mirror for use in this session --- # also installing the dependencies 'statnet.common', 'trust' #snipped require(ergm) #snipped sessionInfo() #R version 3.0.2 Patched (2013-12-11 r64449) #Platform: