[R] Lattice to ggplot2: Reference graphics across facets

2012-10-22 Thread Jim Price
Hi, I'm playing with moving some of my lattice graphics into ggplot2, and I'd like to ask how to achieve a couple of things, both of which are fully illustrated in self-contained code (and mostly minimal, although that left quite a bit) following this written description. 1. I quite often like to

Re: [R] plot.new() and grid functions in multipage pdfs

2012-10-22 Thread Paul Murrell
Hi Here are a couple of suggestions: (i) To start a new page, use plot.new() FIRST, followed by grid.newpage() (if you are trying to mix 'grid' and base graphics) (ii) Watch out for 'grid' and base graphics fighting each other over the clipping region (you might need to use grid.clip() after

Re: [R] Help with applying a function to all possible 2x2 submatrices

2012-10-22 Thread CMB123
I apologize if the term "submatrix" was confusing - I am basically 2 rows and 2 columns from a r x c matrix to construct 2x2 matricies. Thus, the choose(r,2) * choose(c,2) possible combinations. For each matrix [(a,b), (c,d)], I am testing a > b, b > d, d > c, and c > a. For the sake of simplicity

Re: [R] Help plz to fix it

2012-10-22 Thread arun
Hi, May be this helps: psidp<-function(x){  p <- c(1/10, 2/5, 2/5, 2/5, 2/5, 1/10, 1/10, 1/10, 1/10, 1/10)  ifelse(x>0 & x<=length(p),sum(p[seq(1,x,1)]),NA)} psidp(0) #[1] NA  psidp(5) #[1] 1.7  psidp(10) #[1] 2.2 A.K. - Original Message - From: Rlotus To: r-help@r-project.org Cc: Sen

Re: [R] plot.new() and grid functions in multipage pdfs

2012-10-22 Thread Paul Murrell
Hi Sorry, that should be ... (i) To start a new page, use plot.new() (if you are trying to mix 'grid' and base graphics) (ii) Watch out for 'grid' and base graphics fighting each other over the clipping region (you might need to use grid.clip() after a call to plot() or your 'grid' output m

Re: [R] Counting duplicates in a dataframe

2012-10-22 Thread asafwe
Thank you all; David -- this is, in fact, exactly what I need! Asaf -- View this message in context: http://r.789695.n4.nabble.com/Counting-duplicates-in-a-dataframe-tp4646954p4647075.html Sent from the R help mailing list archive at Nabble.com. __

[R] boot: how is t0 calculated?

2012-10-22 Thread Thomas Hoffmann
Dear all, I am doing log-transformed bootstrap regression using: x=c(0.038,0.054,1.030,1.250,10.240,52.000,228.100,240.000,758.000,1502.600,0.140,9.170,280.000,1.000,0.150,0.388,20) y=c(3961.5,25987.5,526557,321094.5,642,23592715.5,4050, 228853521.1,320980392,42900,58435.5,13525240.5

Re: [R] Help with applying a function to all possible 2x2 submatrices

2012-10-22 Thread Bert Gunter
Inline. On Mon, Oct 22, 2012 at 1:10 PM, CMB123 wrote: > I apologize if the term "submatrix" was confusing - I am basically 2 rows and > 2 columns from a r x c matrix to construct 2x2 matricies. Thus, the > choose(r,2) * choose(c,2) possible combinations. > > For each matrix [(a,b), (c,d)], What

[R] Error: object 'CO2' not found

2012-10-22 Thread Beto .
Hello: I am new on R, this is the first time I work with it, I am trying to run some R example to get learn of them, but, I have a problem when running the example below: http://stat.ethz.ch/R-manual/R-patched/library/datasets/html/zCO2.html CO2.Qn1 <- CO2[CO2$Plant == "Qn1", ] SSasympOff(CO2.Q

Re: [R] Error: object 'CO2' not found

2012-10-22 Thread Jeremy Miles
You need to load the dataset. First, run data(CO2) Then it should work. Jeremy [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www

Re: [R] BiodiversityR GUI error message

2012-10-22 Thread Sarah Goslee
I would start by making sure your R installation and all packages are up-to-date. update.packages() will be helpful once you've upgraded R itself. Sarah On Monday, October 22, 2012, Vinicius Campos wrote: > Dear Gabor > > You got solution for your problem? > > "I have just got a laptop with win

[R] CFP

2012-10-22 Thread ICICS2013
[Apologies if you receive multiple copies of this Call For Papers.] CALL FOR PAPERS = The 4th International Conference on Information and Communication Systems, ICICS 2013 Organized by Jordan University of Science and Technology April 23-25 2013, Irbid, Jordan http://www.icics.info

[R] Polynomial optimisation in R

2012-10-22 Thread nserdar
I can not find any packages for polynomial optimisation in R. Please let me know any packages for that. Regards, Ser -- View this message in context: http://r.789695.n4.nabble.com/Polynomial-optimisation-in-R-tp4647085.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] Counting duplicates in a dataframe

2012-10-22 Thread arun
Hi, ?ctab() also gets the same result. library(catspec) dat2<-within(dat1,{Gender<-factor(Gender);Dosage<-factor(Dosage)})  ctab(dat2$Gender,dat2$Dosage) #   a b #  #f  4 4 #m  4 4 A.K. - Original Message - From: David Winsemius To: arun Cc: asafwe ; R help Sent: Monday, October

Re: [R] Polynomial optimisation in R

2012-10-22 Thread David Winsemius
On Oct 22, 2012, at 5:14 PM, nserdar wrote: > I can not find any packages for polynomial optimisation in R. > > Please let me know any packages for that. I can think of code written in base R that might satisfy that request. Perhaps you should a) say what you understand by that phrase, and b)

Re: [R] Help plz to fix it

2012-10-22 Thread Rlotus
Thank u so much for helping! Now I got it ;) -- View this message in context: http://r.789695.n4.nabble.com/Help-plz-to-fix-it-tp4647051p4647089.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https:

[R] Downloading a html table

2012-10-22 Thread David Arnold
All, A friend of mine would like to use this data with his stats class: http://www.worldatlas.com/aatlas/populations/usapoptable.htm I can't figure a way of capturing this data due to the mysql commands in the source code. Any thoughts? David. -- View this message in context: http://r.7896

Re: [R] Downloading a html table

2012-10-22 Thread Rolf Turner
On 23/10/12 16:17, David Arnold wrote: All, A friend of mine would like to use this data with his stats class: http://www.worldatlas.com/aatlas/populations/usapoptable.htm I can't figure a way of capturing this data due to the mysql commands in the source code. Any thoughts? Copying and pas

Re: [R] Downloading a html table

2012-10-22 Thread David L Carlson
Copy the table data (leave out the column headings and the total line at the bottom) into the clipboard. Then > Dta <- read.delim("clipboard", header=FALSE, stringsAsFactors=FALSE) > colnames(Dta) <- c("No", "State", "Abbrev", "Population", "Area.km", "PopDensity.km", "Area.mi", "PopDensity.

Re: [R] boot: how is t0 calculated?

2012-10-22 Thread David Winsemius
On Oct 22, 2012, at 3:28 PM, Thomas Hoffmann wrote: > Dear all, > > I am doing log-transformed bootstrap regression using: > > x=c(0.038,0.054,1.030,1.250,10.240,52.000,228.100,240.000,758.000,1502.600,0.140,9.170,280.000,1.000,0.150,0.388,20) > y=c(3961.5,25987.5,526557,321094.5,642,235927

Re: [R] help stored permanently

2012-10-22 Thread Martin Maechler
> R Michael Weylandt > on Mon, 22 Oct 2012 09:06:35 +0100 writes: > On Monday, October 22, 2012, Christian Hoffmann wrote: >> Hi, >> >> Each > help.start() generates a new tree of the R help >> system, somewhere in 127.0.0.1:xxx, each xxx being >> difeerent. T

<    1   2