Re: [R] Decrete value check in a matrix

2012-07-02 Thread John Kane
Glad it works. So far we seem to have at least three ways to do it. R is amazing! John Kane Kingston ON Canada > -Original Message- > From: antony.akk...@ge.com > Sent: Mon, 2 Jul 2012 06:04:03 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] Decrete value ch

Re: [R] Code scatter plot data from matrix with 3rd column

2012-07-03 Thread John Kane
( z))) + geom_point() John Kane Kingston ON Canada > -Original Message- > From: kbw1...@yahoo.com > Sent: Mon, 2 Jul 2012 13:31:36 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Code scatter plot data from matrix with 3rd column > > Hello > > I am lo

Re: [R] how to do a graph with tree different colors??

2012-07-03 Thread John Kane
Any sample data for us to work with? See ?dput for a good method of supplying sample data. John Kane Kingston ON Canada > -Original Message- > From: denissearchun...@yahoo.com.mx > Sent: Mon, 2 Jul 2012 14:04:53 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] ho

Re: [R] carpet plots

2012-07-03 Thread John Kane
Anything here that might help http://learnr.wordpress.com/2010/01/26/ggplot2-quick-heatmap-plotting/ John Kane Kingston ON Canada > -Original Message- > From: joeclar...@hotmail.com > Sent: Mon, 2 Jul 2012 13:21:25 -0700 > To: mueller.eisb...@googlemail.com, r-help@r

Re: [R] How do you impute missing data using Latent Class Model (poLCA package)

2012-07-04 Thread John Kane
John Kane Kingston ON Canada > Who are the authors of the R package poLCA. >From the R CRAN site Author: Drew Linzer, Jeffrey Lewis. Maintainer: Drew Linzer FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins,

Re: [R] Help! Please recommend good books/resources on visualizing data and understanding multivariate relations...

2012-07-04 Thread John Kane
One basic and very good one is Cleveland, W. S. (1985). The Elements of Graphing Data. Wadsworth, Inc. John Kane Kingston ON Canada > -Original Message- > From: comtech@gmail.com > Sent: Tue, 3 Jul 2012 18:12:00 -0500 > To: r-h...@stat.math.ethz.ch > Subject: [

Re: [R] ggplot2: legend

2012-07-04 Thread John Kane
I played around with this for a while with no success at all. I'd suggest posting the question on the ggplot2 newsgroup in Google Groups John Kane Kingston ON Canada > -Original Message- > From: thorn.tha...@rdls.nestle.com > Sent: Tue, 3 Jul 2012 18:50:52 +0200

Re: [R] how to analyse non parametric test

2012-07-05 Thread John Kane
Please read the posting guidelines. So far we have no idea of what you are doing or how you are doing it. John Kane Kingston ON Canada > -Original Message- > From: anilgv...@gmail.com > Sent: Thu, 5 Jul 2012 15:11:20 +0530 > To: r-help@r-project.org > Subject: [R] how

Re: [R] EM algorithm to find MLE of coeff in mixed effects model

2012-07-05 Thread John Kane
I don't believe that R-help permits pdf files. A useful workaround is to post it to a file hosting site like MediaFire and post the link here. John Kane Kingston ON Canada > -Original Message- > From: jimmycl...@gmail.com > Sent: Wed, 4 Jul 2012 22:56:02 -0400

Re: [R] reshape2 errors on data frame

2012-07-05 Thread John Kane
It would be very helpful to have some sample data to play with. str() shows the structure of the data set but it is not the data. Something like dput(head(100)) would probably be enough. John Kane Kingston ON Canada > -Original Message- > From: rshep...@appl-ecosys.com >

Re: [R] how to do a graph with tree different colors??

2012-07-06 Thread John Kane
like. I'm sorry I cannot be of more immediate help. John Kane Kingston ON Canada -Original Message- From: denissearchun...@yahoo.com.mx Sent: Fri, 6 Jul 2012 06:01:42 -0700 (PDT) To: jrkrid...@inbox.com Subject: Re: [R] how to do a graph with tree different c

Re: [R] Tables extraction in R ?

2012-07-06 Thread John Kane
Have a look at the xtables package. I have not used it in some time but I think it may do what you want. A google search "R statistics xtables" should bring up some useful information on this. John Kane Kingston ON Canada > -Original Message- > From: sggk...@gmail.co

Re: [R] Poisson Ridge Regression

2012-07-06 Thread John Kane
Probabaly not since you do not tell us what the problem is. Please read the posting notes at the bottom of this email John Kane Kingston ON Canada > -Original Message- > From: khatriumes...@gmail.com > Sent: Fri, 6 Jul 2012 21:13:32 +0530 > To: r-help@r-project.org &

Re: [R] Error in plot.new() : figure margins too large

2012-07-06 Thread John Kane
Your code works okay in a plan R terminal. It may be an Rstudio problem or perhaps you already have a graphics device open and are trying to draw into it? John Kane Kingston ON Canada > -Original Message- > From: khar...@lbl.gov > Sent: Fri, 6 Jul 2012 10:39:41 -0700 >

[R] Splitting a character vector.

2012-07-07 Thread John Kane
ding the function or don't know how to escape a "(" properly in an effort to at least get "XXY" "(mat harry)" Any pointers would be appreciated Thanks John Kane Kingston ON Canada FREE 3D MARIN

Re: [R] Splitting a character vector.

2012-07-07 Thread John Kane
Thanks Rui It works perfectly so far on the test and real data. The annoying thing is that I had tried , or thought I'd tried the open.par format and keep getting an error. It looks like I had failed to add the '''', in the term. What is it doing? Joh

Re: [R] Splitting a character vector.

2012-07-07 Thread John Kane
No sorry Rui, In the expression result <- strsplit(sub(close.par, "", dd1), open.par) there is close.par, ''", open.par I probably am just blind but I don't understand what it is doing. John Kane Kingston ON Canada > -Original Message- > Fro

Re: [R] Splitting a character vector.

2012-07-07 Thread John Kane
Thanks Jeff. I actually had that figured out after a good hour of pounding my head against the wall but I still could not seem to get the syntax correct. I think I misunderstand strpsplt() just enough to keep making dumb mistakes. John Kane Kingston ON Canada > -Original Mess

Re: [R] Splitting a character vector.

2012-07-07 Thread John Kane
How totaly obvious once you tell me! I would have spend days trying to figure it out. I think I have a total mental block on regex and their derivatives. Thanks very much. John Kane Kingston ON Canada > -Original Message- > From: ruipbarra...@sapo.pt > Sent: Sat, 07 Jul 2

Re: [R] Splitting a character vector.

2012-07-07 Thread John Kane
Ah, I think Mark may have it. See my earlier post. Why the space? John Kane Kingston ON Canada > -Original Message- > From: ruipbarra...@sapo.pt > Sent: Sat, 07 Jul 2012 23:12:46 +0100 > To: marklee...@gmail.com > Subject: Re: [R] Splitting a character vector. > >

Re: [R] Splitting a character vector.

2012-07-07 Thread John Kane
I think I'm geting it a bit. Anyway time to shut down and have a beer. Life will be much nice tomorrow or Monday when I get back to cleaning up the data from that spreadsheet. Many thanks and have a good weekend. John Kane Kingston ON Canada > -Original Message- > From

Re: [R] Splitting a character vector.

2012-07-08 Thread John Kane
Works perfectly. Thank you very much indeed. John Kane Kingston ON Canada > -Original Message- > From: dwinsem...@comcast.net > Sent: Sat, 7 Jul 2012 21:45:58 -0400 > To: jrkrid...@inbox.com > Subject: Re: [R] Splitting a character vector. > > > On Jul 7, 201

Re: [R] a fortune?

2012-07-09 Thread John Kane
ooohhh! John Kane Kingston ON Canada > -Original Message- > From: ted.hard...@wlandres.net > Sent: Sun, 08 Jul 2012 21:07:09 +0100 (BST) > To: r-help@r-project.org > Subject: Re: [R] a fortune? > > Should this not be attributed to DescaRtes? > > Ted. &

Re: [R] Splitting a character vector.

2012-07-09 Thread John Kane
Right, I see it now. Thanks. Who knows in another 100 years I may understand regex. John Kane Kingston ON Canada > -Original Message- > From: smartpink...@yahoo.com > Sent: Sat, 7 Jul 2012 16:19:54 -0700 (PDT) > To: jrkrid...@inbox.com > Subject: Re: [R] Splitting a c

Re: [R] how to make plot lines thicker

2012-07-09 Thread John Kane
?par and have a look at lwd John Kane Kingston ON Canada > -Original Message- > From: jenkere...@gmail.com > Sent: Mon, 9 Jul 2012 10:11:32 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] how to make plot lines thicker > > I am trying to make the lines thic

Re: [R] A simple simulation question

2012-07-12 Thread John Kane
I think that you have the statements out of order and I know that you are lacking the last ) to match the replicate( Try this" replicate(100, { x=rep(1:10,10) y=rnorm(100,x,5) plot(y~x) abline(lm(y~x)) }) John Kane Kingston ON Canada > -Original Message- > From:

Re: [R] plot graph by first letter

2012-07-12 Thread John Kane
I really am not sure of the question but perhaps ?order for a start? John Kane Kingston ON Canada > -Original Message- > From: jubil...@live.com.sg > Sent: Thu, 12 Jul 2012 01:15:26 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] plot graph by first letter > &g

Re: [R] plot only a same variable timing graph

2012-07-12 Thread John Kane
?subset John Kane Kingston ON Canada > -Original Message- > From: jubil...@live.com.sg > Sent: Wed, 11 Jul 2012 20:53:51 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] plot only a same variable timing graph > > hi all. > for example : > > Table 1 v

Re: [R] Side by side strip charts

2012-07-13 Thread John Kane
try something like abline(h=1.9) John Kane Kingston ON Canada > -Original Message- > From: dwarnol...@suddenlink.net > Sent: Fri, 13 Jul 2012 09:54:35 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] Side by side strip charts > > OK, got this far: &

Re: [R] variable (column) in a data frame

2012-07-15 Thread John Kane
This seems more or less correct to me. 1> sum(df$a==1) [1] 1 1> sum(df$a==2) [1] 1 1> sum(df$aaa==2) [1] 0 There is no df$aaa so the length is 0 which is what I think you are asking. What am I missing? John Kane Kingston ON Canada > -Original Message- >

Re: [R] Imposing more than one condition to if

2012-07-15 Thread John Kane
No idea of how to do what you want but your data set is not working. I think that you want x= c(1:24) day= rep(1:30, each=10) time= sample(x, 300, replace= T) light= rep(c(20,10,6,0,0,0,0,0,8,20), 30) d=data.frame(day,time,light) n= length(day) John Kane Kingston ON Canada > -Origi

Re: [R] HLOOKUP in R

2012-07-16 Thread John Kane
1:10, targ <- c(11:20))) xx <- 4 hvlook <- mda[2 , match(1, df1[, xx]) ] hvlook John Kane Kingston ON Canada > -Original Message- > From: santosh.srini...@gmail.com > Sent: Sun, 15 Jul 2012 04:56:30 -0700 (PDT) > To: r-help-arch...@googlegroups.com > Sub

Re: [R] HLOOKUP in R

2012-07-16 Thread John Kane
My quick read of the HVLOOLUP text suggests that an exact match is what is done in Excel or other spreadsheets. But then, I've never used it. I get the impression is often used for things like price lookups. John Kane Kingston ON Canada > -Original Message- >

Re: [R] as.xts

2012-07-16 Thread John Kane
Yolande, Attached files are usually deleted from the r-help list and I see no sign of your file. You can use the function dput() to output the your file in a format that you can paste into your email and which other readers can paste into R and use. See ?dput for more information. John Kane

Re: [R] NA instead of time stamp

2012-07-17 Thread John Kane
. John Kane Kingston ON Canada > -Original Message- > From: yolande@gmail.com > Sent: Tue, 17 Jul 2012 10:48:28 -0400 > To: r-help@r-project.org > Subject: [R] NA instead of time stamp > > I was wondering why I get instead of the timestamp in the > following.

Re: [R] alternate tick labels and tick marks with lattice xyplot

2012-07-18 Thread John Kane
Oh, I clearly misunderstood what you were doing there. I don't know anything about Manhattan plots but a quick google for "manhattan plot r package" turns up a number of items so the type of plot you want may already exist. Sorry to not be of more help. John Kane Kin

Re: [R] cenbox(): Changing Default x-axis Group Labels

2012-07-19 Thread John Kane
Code? Sample data? John Kane Kingston ON Canada > -Original Message- > From: rshep...@appl-ecosys.com > Sent: Wed, 18 Jul 2012 14:30:24 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] cenbox(): Changing Default x-axis Group Labels > >I've looked a

Re: [R] Upgrading on Ubuntu from 2.11.1 to 2.15.1

2012-07-19 Thread John Kane
gt; Subject: Re: [R-sig-Debian] Attempting to update from R 2.14 to 2.15 on > Ubuntu > > > > On 06/12/2012 02:42 PM, John Kane wrote: >> R-SIG-Debian >> >> I am very new to Linux so I probably am doing something stupid but I >> cannot seem to update to

Re: [R] Entering Data Files

2012-07-19 Thread John Kane
t;, header = TRUE) in Windows. Note that you can do either Linux style / or use Windows \ but if so you must escape them so the path would be "C:\\mydata\\ages.csv". Hope this helps. John Kane Kingston ON Canada > -Original Message- > From: dwarnol...@suddenlink.ne

Re: [R] Fwd: Extract element of a list based on an index value

2011-06-24 Thread John Kane
Is this doing what you want? It's going from the raw data not the list === library(reshape2) # sample data.frame xx <-structure(list(Warrior = c(3793L, 2013L, 3769L, 2747L, 2083L, 2085L, 2086L, 2556L, 2050L, 2158L, 3045L), SibID =

Re: [R] Fwd: Extract element of a list based on an index value

2011-06-24 Thread John Kane
Is this doing what you want? It's going from the raw data not the list === library(reshape2) # sample data.frame xx <-structure(list(Warrior = c(3793L, 2013L, 3769L, 2747L, 2083L, 2085L, 2086L, 2556L, 2050L, 2158L, 3045L), SibID =

Re: [R] R-help

2011-06-24 Thread John Kane
http://www.r-project.org/ Manuals > Introduction to R This is not a homework forum. If you are in the middle of a problem, have a "very" specific "R" problem and clearly have done your work come back and ask for help --- On Fri, 6/24/11, Edward Bowora wrote: > From: Edward Bowora > Subject

Re: [R] Ordering a matrix based on cluster no

2011-06-26 Thread John Kane
Combine the two matrices into one data.frame and order them Example done using data.frames rather than matrices but just use use data.frame(x,y) to convert to a data.frame bmat <- data.frame(matrix(1:25,5)) smat <- data.frame(aa= LETTERS[1:25], bb = rep(c("a","b","c", "d", "e"),5)) df1 <-

Re: [R] Ordering a matrix based on cluster no

2011-06-27 Thread John Kane
Hi First a handy point : When supplying sample data it is a good idea to use dput(). See ?dput for an explanation. It makes it much easier to see what the data looks like and to work with it. Sample data pasted into a e-mail can get badly mangled. Yours was not bad but still need a bit of cle

[R] Add use of dput() to the instructions at bottom of post?

2011-06-27 Thread John Kane
It's often difficult to figure out what a problem data set looks like when someone pastes a mess of output from R into an e-mail. The dput command, used judiciously—I would hope no one would send a 1 M data set—can make life much easier. I wonder if it would be useful to add a hint in the inst

Re: [R] Add use of dput() to the instructions at bottom of post?

2011-06-27 Thread John Kane
post? > To: "John Kane" > Received: Monday, June 27, 2011, 10:30 AM > > On Jun 27, 2011, at 10:10 AM, John Kane wrote: > > > A bit more complicated but it is there. However it > also looks pretty scary for a newbie, assuming they even > understand the purpose.

Re: [R] Executing the same function on consecutive files

2011-06-27 Thread John Kane
This looks something like what you want. http://r.789695.n4.nabble.com/Reading-in-a-series-of-files-using-a-for-loop-td906101.html --- On Mon, 6/27/11, Trying To learn again wrote: > From: Trying To learn again > Subject: [R] Executing the same function on consecutive files > To: r-help@r-proj

Re: [R] R for Windows - 5 stars award on Windows 7 Download

2011-07-03 Thread John Kane
SPAM? --- On Sat, 7/2/11, Windows 7 Download wrote: > From: Windows 7 Download > Subject: [R] R for Windows - 5 stars award on Windows 7 Download > To: "R Development Core Team" > Received: Saturday, July 2, 2011, 4:51 PM > Dear R Development Core Team > > We are more than happy that Windows

[R] Unusual graph- modified wind rose perhaps?

2011-07-04 Thread John Kane
In a OpenOffice.org forum someone was asking if the spreadsheet could graph this http://www.elmundo.es/elmundosalud/documentos/2011/06/leche.html I didn't think it could. :) I don't think I've ever seen exactly this layout. Does anyone know if there is anything in R that does a graph like

Re: [R] Unusual graph- modified wind rose perhaps?

2011-07-04 Thread John Kane
gt; Subject: RE: [R] Unusual graph- modified wind rose perhaps? > To: "John Kane" , "r-help@r-project.org" > > Received: Monday, July 4, 2011, 8:14 AM > Dear John, > > You can get pretty close with ggplot2. > > Best regards, > > Thierry >

Re: [R] Unusual graph- modified wind rose perhaps?

2011-07-06 Thread John Kane
d wind rose perhaps? > To: "John Kane" , r-help@r-project.org > Received: Wednesday, July 6, 2011, 3:25 PM > At 12:21 04/07/2011, John Kane > wrote: > > > In a OpenOffice.org forum someone was asking if the > spreadsheet could graph this > http://www.elmundo.es/elmun

Re: [R] Split a row vector into columns

2011-07-06 Thread John Kane
t(matrix(rep(1:3, 3), nrow=3)) --- On Wed, 7/6/11, Peter Maclean wrote: > From: Peter Maclean > Subject: Re: [R] Split a row vector into columns > To: r-help@r-project.org > Received: Wednesday, July 6, 2011, 2:06 PM > I want to create columns from this > row vector. From: >     x1 x2 x3 x1 x2

Re: [R] Showing which bars in a bar chart are significantly different

2011-07-06 Thread John Kane
# Incremental approach bb <- c(23, 45, 67) bsp <- barplot(bb,beside=TRUE) # get midpoints of the bars and plot # draw lines segments( .7, 50, 1.9, 50) segments(.7, 50, .7, 48) segments(1.9, 50, 1.9, 48) # Or all in one go segments(c(.7, .7, 1.9), c(50,50,50), c(1.9,.7,1.9), c(50, 48, 48)) ---

Re: [R] qplot/ggplot

2012-07-20 Thread John Kane
I think we need some raw data. Have a look at ?dput for a way to supply it. It might help if you supplied some sample code of what you have tried. "I want a line plot" is not particularly helpful. John Kane Kingston ON Canada > -Original Message- > From: anamika...@

Re: [R] Crosstab with Average and Count

2012-07-20 Thread John Kane
z, na.rm = TRUE), mean = mean(z, na.rm = TRUE), count = length(z))) John Kane Kingston ON Canada > -Original Message- > From: viora...@gmail.com > Sent: Fri, 20 Jul 2012 03:30:16 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Crosstab with Average and C

Re: [R] Creating Multiple Repeating samples and Cross Correlating them.

2012-07-20 Thread John Kane
eplace = TRUE) } mymat John Kane Kingston ON Canada > -Original Message- > From: baile...@ohsu.edu > Sent: Thu, 19 Jul 2012 14:17:43 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Creating Multiple Repeating samples and Cross Correlating > them. > > I

Re: [R] rhsape2 bug?

2012-07-22 Thread John Kane
Check and see if you have reshape loaded as well. I had a somewhat similar problem (R2.13 ?) and realised that reshape was masking reshape2 John Kane Kingston ON Canada > -Original Message- > From: dwarnol...@suddenlink.net > Sent: Sat, 21 Jul 2012 16:06:11 -0700 (PDT) >

Re: [R] Creating panel data

2012-07-23 Thread John Kane
(0,68.5)) dd <- melt(x, id= c("id", "Event1", "Event2"), value.name="year.quarter" ) dd1 <- subset(dd, dd[, 5] != 0 ) dd1 <- dd1[ , c(1,2,3,5)] John Kane Kingston ON Canada > -Original Message- > From: r...@jp.pair.co

Re: [R] How to do the same thing for all levels of a column?

2012-07-24 Thread John Kane
. Something like dput(head(mydata)) should be fine. Just copy and paste the output into your email. Welcome to R. I think you will like it. John Kane Kingston ON Canada > -Original Message- > From: z...@cornell.edu > Sent: Mon, 23 Jul 2012 18:01:11 -0400 > To: r-help@r

Re: [R] R doesn't recognize R_HOME value

2012-07-24 Thread John Kane
Can we have a Window subset of fortunes? John Kane Kingston ON Canada > -Original Message- > From: kirkrflem...@hotmail.com > Sent: Mon, 23 Jul 2012 14:06:48 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] R doesn't recognize R_HOME value > I do

Re: [R] Hire person to convert R code to SAS

2012-07-24 Thread John Kane
rt it to R. John Kane Kingston ON Canada > -Original Message- > From: surg...@mac.com > Sent: Mon, 23 Jul 2012 11:50:48 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] Hire person to convert R code to SAS > > interesting idea, the problem is that I have a

Re: [R] How to do the same thing for all levels of a column?

2012-07-24 Thread John Kane
time0total = sum(myfile[,2]) mydata <- myfile[, 2:10] md1 <- melt(mydata, id = "Time_zero") ddply(md1, .(variable, value), summarise, sum = sum(Time_zero)/time0total) John Kane Kingston ON Canada -Original Message- From: z...@cornell.edu Sent:

[R] Simple reshape problem I am completely missing

2012-07-24 Thread John Kane
3616366, 0.951669704638363, 0.89764100023006, 0.0850868034048879, 0.0172721963650521, 0.951669704638363, 0.0483302953616366, 0.963243491956749, 0.0367565080432513, 0.89764100023006, 0.0540287044083034, 0.0483302953616366, 0.982727803634948, 0.0172721963650521 )), .Names = c("gro

Re: [R] Simple reshape problem I am completely missing

2012-07-24 Thread John Kane
Looks like it. thanks Now all I have to do is figgure out how to get rid of all the missing combos. Oh well another dat thanks John Kane Kingston ON Canada > -Original Message- > From: smartpink...@yahoo.com > Sent: Tue, 24 Jul 2012 10:45:18 -0700 (PDT) > To: jrkrid.

Re: [R] Boxplot graphic

2012-07-25 Thread John Kane
PLEASE do read the posting guide. You really need to supply some sample data and the code you are using. We can make guesses about what you are doing but it is much easier to actually look at the data and code. Please use dput() ( see ?dput) to supply some sample data. John Kane Kingston ON

Re: [R] creating Pivot

2012-07-25 Thread John Kane
# note file name is xx. library(reshape2) dcast(xx, name ~ color, value.var = "values") John Kane Kingston ON Canada > -Original Message- > From: saileshchowd...@gmail.com > Sent: Tue, 24 Jul 2012 21:41:19 -0700 (PDT) > To: r-help@r-project.org > Subject: [

Re: [R] How to do the same thing for all levels of a column?

2012-07-25 Thread John Kane
#x27;s not just me reading the code. If you run: md1 <- melt(mydata, id = "Time_zero", variable.name="xvars", value.name="aminos") ddply(md1, .(xvars, aminos), summarise, sum = sum(Time_zero)/time0total) I think it will show what i

Re: [R] Passing arguments to SQL Query in R

2012-07-26 Thread John Kane
Score"), class = "data.frame", row.names = c(NA, -16L)) # R basic aggregate(Score ~ Name, mean, data = mydata) library(reshape2) dcast(mydata, Name ~ . , mean) library(plyr) ddply(mydata, .(Name), summarize, Mean = mean(Score)) library(data.table) DT <- data.table(myd

Re: [R] scale_y_logit not present in ggplot2 0.9?

2012-07-26 Thread John Kane
I think it has been moved to the scales package but I've never used it so I don't know the syntax. John Kane Kingston ON Canada > -Original Message- > From: fjpcaball...@gmail.com > Sent: Thu, 26 Jul 2012 07:41:58 -0400 > To: r-help@r-project.org > Subje

Re: [R] Variables in a Tabular form. easily saved in a txt file

2012-07-26 Thread John Kane
ot;City3") hds <- c("Postal.Code", "Superb") mat <- matrix( c(postal, superb), nrow=3) colnames(mat) <- hds rownames(mat) <- cities mat dat1 <- data.frame(cities, postal, superb) names(dat1) <- c("city", "postal.code", sup

Re: [R] Adding "%" symbol in middle Row

2012-07-26 Thread John Kane
Something as simple as dat1[2,2] <- "3%" where your data is in a data.frame called dat will change 3 to 3% it but it changes everything in that column to character if it was numeric. str(dat1) John Kane Kingston ON Canada > -Original Message- > From: sailes

Re: [R] Error Bars ggplot2

2012-07-26 Thread John Kane
.1,2.2,5)) myplot<-ggplot(dat1, aes(spd, r, colour = spd)) + geom_errorbar(aes(ymin=3, ymax=5), width=.1) + geom_point() + coord_flip() John Kane Kingston ON Canada > -Original Message- > From: adamjgabb...@gmail.com > Sent: Thu, 26 Jul 2012 09:03:44 -0400 > To: r-help@r-project.

Re: [R] package memisc: recode examples

2012-07-26 Thread John Kane
ge the status quo. It becomes fairly obvious after the first few imbroglios. On the other hand as they now teach passive sentence structure is harder to understand that postive, so perhaps: Objects x,yz in package A mask objects x,y z in package B? John Kane Kingston ON Canada > -

Re: [R] On Reproducible Code

2012-07-27 Thread John Kane
> -Original Message- > From: j...@bitwrit.com.au > Sent: Fri, 27 Jul 2012 19:21:36 +1000 > To: dcarl...@tamu.edu > Subject: Re: [R] On Reproducible Code > > On 07/26/2012 01:50 AM, David L Carlson wrote: >> We often refer requesters to the Posting Guide and chide them for not >> reading

Re: [R] On Reproducible Code

2012-07-27 Thread John Kane
I'd vote for that! It would probably bug the blazes out of experienced users but the time savings in getting a newbie to actually supply enough information so that someone can, at least, try to answer the question would be well worth it. John Kane Kingston ON Canada > -Original

Re: [R] Separating Columns in Excel Export from R

2012-07-27 Thread John Kane
I think you have a type: Try "\t" John Kane Kingston ON Canada > -Original Message- > From: watson...@hotmail.com > Sent: Fri, 27 Jul 2012 09:30:34 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Separating Columns in Excel Export from R > > Hell

Re: [R] On Reproducible Code

2012-07-27 Thread John Kane
h assumptions are false. People are particular well >> trained to skip over boilerplate text at the bottom of emails. > > One day the list owner will subtly change the boilerplate text at the > bottom of R-help emails and nobody will notice. > Not 1 necessarily so. I glance at it oc

Re: [R] Separating Columns in Excel Export from R

2012-07-27 Thread John Kane
Yes just a bit picky. While it would not have caught this problem a good editor with highlighting (Tinn-R in Windows, gedit or geany? in Linux can really help. Try googling for a discusson of editors for R. There was one a few month ago I think John Kane Kingston ON Canada > -Origi

Re: [R] Coloring Counties in a State Map

2012-07-29 Thread John Kane
you have already developed in trying to do this. John Kane Kingston ON Canada > -Original Message- > From: italianoperstrani...@hotmail.it > Sent: Sat, 28 Jul 2012 13:56:18 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Coloring Counties in a State Map > > I

Re: [R] Appending the Column names

2012-07-29 Thread John Kane
You cannot have two sets of column names in a data.frame You can do this rbind(X, Y) Summary G Y R 1 Acc 12 12 13 2 Bcc 11 14 15 3 Ccc 13 15 16 4 Acc 10 11 12 5 Bcc 13 12 11 6 Ccc 11 16 20 John Kane Kingston ON Canada > -Original Message- >

Re: [R] Convert variable to STring

2012-07-30 Thread John Kane
Can you give us an example of what you mean by the functions listed below. Otherwise something like this seems to work xx <- 1 :4 x1 <- as.character(xx) mat <- matrix(1:12, nrow=3) John Kane Kingston ON Canada > -Original Message- > From: ala...@yahoo.com > Sent

Re: [R] Turning off continuation prompt?

2012-07-30 Thread John Kane
If I understand the question correctly the answer is probably not to type anything at the R command line. A good editor or interface is a better approach http://en.wikipedia.org/wiki/R_%28programming_language%29#Interfaces John Kane Kingston ON Canada > -Original Message- >

Re: [R] If/then statement, if in a list then

2012-07-30 Thread John Kane
if(cond) expr if(cond) cons.expr else alt.expr Also see ?ifelse John Kane Kingston ON Canada > -Original Message- > From: bunnylove...@optonline.net > Sent: Mon, 30 Jul 2012 05:55:34 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] If/then statement, if in a l

Re: [R] Polygon shaded area

2012-08-02 Thread John Kane
our email. Readers can directly paste the file into their R console and see exactly what your data is. John Kane Kingston ON Canada FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family! Visit h

Re: [R] Polygon shaded area

2012-08-02 Thread John Kane
Data came through fine. I can never plot a polygon without help but I think you have a data problem. Try this: efinal == efinal2 John Kane Kingston ON Canada -Original Message- From: narillosdesan...@gmail.com Sent: Thu, 2 Aug 2012 16:55:23 +0200 To

Re: [R] How to adjust legend in a plot?

2012-08-03 Thread John Kane
Just move the legend. Change topright to x = ? y = ? whatever to find an empty place on the plot. John Kane Kingston ON Canada > -Original Message- > From: mandecent.gu...@gmail.com > Sent: Fri, 3 Aug 2012 00:17:38 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R

Re: [R] how to identify values from a column of a dataframe, and insert them in other data.frame with the corresponding id?

2012-08-03 Thread John Kane
Hi Nerea, For some reason your post is badl garbled and close to imposible to read. Perhaps you need to check your text encoding? Also to send sample data it is better to use the dput() command. Do dput(myfile) and then paste the results into your email Sorry not to be of more help. John

Re: [R] Writing Faroes lettsers in text and plot ?

2012-08-04 Thread John Kane
Depends on your OS probably. I would just add a Faroese keyboard to my Ubuntu setup and switch between my normal keyboard and Faoese as required. John Kane Kingston ON Canada > -Original Message- > From: klausflemlo...@mail.tele.dk > Sent: Fri, 3 Aug 2012 10:08:48 -0700 (PDT

Re: [R] how to put barchart and line chart in the same plot in ggplot2

2012-08-05 Thread John Kane
As far as I understand ggplot2, you cannot do it. ggplot2 is pretty much designed to NOT allow two different sets of data with different y axes in the same plot. Doing this is generally considered very bad practice. I'd suggest looking into perhaps using a 2X1 or X2 grid and plotting the tw

Re: [R] ggplot2 boxplot help

2012-08-05 Thread John Kane
+ scale_x_discrete(breaks=c("value_1", "value_2"), labels=c("Sample 1", "Sample 2")) p #### John Kane Kingston ON Canada > -Original Message- > From: alexp

Re: [R] ggplot2 boxplot help

2012-08-05 Thread John Kane
Duh, I'm more dyslexic than usual obviously. John Kane Kingston ON Canada > -Original Message- > From: ruipbarra...@sapo.pt > Sent: Sun, 05 Aug 2012 17:07:38 +0100 > To: jrkrid...@inbox.com > Subject: Re: [R] ggplot2 boxplot help > > Hello, > > Wa

Re: [R] Tukey HSD not fully displayed in R console

2012-08-06 Thread John Kane
Would just saving the results onto an object saving it work? >From the help page example summary(fm1 <- aov(breaks ~ wool + tension, data = warpbreaks)) myresults<- TukeyHSD(fm1, "tension", ordered = TRUE) write.table (myresults, file = ksksk) John Kane

Re: [R] Overlay Histogram

2012-08-07 Thread John Kane
rest of the plots. vplayout <- function(x, y) viewport(layout.pos.row = x, layout.pos.col = y) grid.newpage() pushViewport(viewport(layout = grid.layout(2, 1))) print(p1, vp = vplayout(1, 1)) print(p2, vp = vplayout(2, 1)) John Kane Kingston ON Canada > -Original Message- >

Re: [R] time plot

2012-08-07 Thread John Kane
What graph? Please read the posting guidelines and provide some example data and some code showing what you are doing. John Kane Kingston ON Canada > -Original Message- > From: anand.kara...@gmail.com > Sent: Tue, 7 Aug 2012 12:24:50 +0530 > To: r-help@r-project.org &

Re: [R] What is the difference between "probe level data" and "summarized data"

2012-08-07 Thread John Kane
No idea. What are you doing? What packages are you using? What function is (presumably) giving you these results? John Kane Kingston ON Canada > -Original Message- > From: mohammadianalimohammad...@gmail.com > Sent: Tue, 7 Aug 2012 01:12:08 -0700 (PDT) > To: r-help@r

Re: [R] Overlapping a Plot with Dataframe

2012-08-07 Thread John Kane
What are you actually plotting? John Kane Kingston ON Canada > -Original Message- > From: bioinfo.himan...@gmail.com > Sent: Tue, 7 Aug 2012 05:57:06 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Overlapping a Plot with Dataframe > > Hello Everyone

Re: [R] Unable to download R package

2012-08-07 Thread John Kane
Olympics--they are all off partying? John Kane Kingston ON Canada > -Original Message- > From: michael.weyla...@gmail.com > Sent: Tue, 7 Aug 2012 11:03:19 -0500 > To: jdnew...@dcn.davis.ca.us > Subject: Re: [R] Unable to download R package > > I can access the Mac

Re: [R] Rcolorbrewer Package

2012-08-07 Thread John Kane
install.packages("RColorBrewer") seems to work for me. John Kane Kingston ON Canada > -Original Message- > From: hannah@gmail.com > Sent: Tue, 7 Aug 2012 13:08:11 -0400 > To: r-help@r-project.org > Subject: [R] Rcolorbrewer Package > > Hi all, &

Re: [R] Overlapping a Plot with Dataframe

2012-08-08 Thread John Kane
John Kane Kingston ON Canada > -Original Message- > From: bioinfo.himan...@gmail.com > Sent: Wed, 8 Aug 2012 02:12:00 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] Overlapping a Plot with Dataframe > > Hello John, > > in simple term, I have a

Re: [R] Confidence bands around LOESS

2012-08-08 Thread John Kane
arameter )) + geom_point() + geom_smooth() p John Kane Kingston ON Canada > -Original Message- > From: kydaviddo...@gmail.com > Sent: Tue, 7 Aug 2012 21:22:41 -0500 > To: r-help@r-project.org > Subject: [R] Confidence bands around LOESS > > Hi Folks, > > I'm l

<    8   9   10   11   12   13   14   15   16   17   >