Re: [R] Need help to building R package with devtools

2013-05-12 Thread John Kane
Just a guess but it looks like you need to upgrade to the latest release (2013-04-03, Masked Marvel) John Kane Kingston ON Canada > -Original Message- > From: bogaso.christo...@gmail.com > Sent: Sun, 12 May 2013 14:40:10 +0545 > To: r-help@r-project.org > Subject: [

[R] melt in reshape2 destroying dates?

2013-05-13 Thread John Kane
When I melt a data frame with some dates I am getting some strange results. I seem to lose the date format with POSIXct and get a row of zeros with POSIXlt Any suggestions as to what I am messing up? Code and data below. Thanks, John Kane Kingston ON Canada mydata <- structure(list(

Re: [R] melt in reshape2 destroying dates?

2013-05-13 Thread John Kane
Thanks very much. I could have sworn I had tried that but obviously I had not. So melt() is returning the correct value which is what I had suspected but I obiously did not convert it properly.I wonder if this buggy enough to mention the behaviour to the package maintainer? John Kane

Re: [R] melt in reshape2 destroying dates?

2013-05-13 Thread John Kane
Amazingly enough I think i actually understand that albeit superficially. Thanks John Kane Kingston ON Canada > -Original Message- > From: smartpink...@yahoo.com > Sent: Mon, 13 May 2013 11:22:35 -0700 (PDT) > To: jrkrid...@inbox.com > Subject: Re: [R] melt in reshape2 d

Re: [R] points overlay axis

2013-05-14 Thread John Kane
Probably but since we don't know what you are doing, it is very hard to give any advice. Please read this for a start https://github.com/hadley/devtools/wiki/Reproducibility and give us a clear statement of the problem Thanks John Kane Kingston ON Canada > -Original

Re: [R] query re plot(confint(lmList...

2013-05-14 Thread John Kane
Please don't post in html. The list strips it out and we, now, have no idea of what you are doing. Have a look at https://github.com/hadley/devtools/wiki/Reproducibility for suggestions on how to ask a qustion here. Sample code and sample data (see ?dupt) are usually desirable. John

Re: [R] query re plot(confint(lmList...

2013-05-14 Thread John Kane
Or better yet see ?dput, sorry. John Kane Kingston ON Canada > -Original Message- > From: jrkrid...@inbox.com > Sent: Tue, 14 May 2013 09:20:59 -0800 > To: mm...@hermes.cam.ac.uk, r-help@r-project.org > Subject: Re: [R] query re plot(confint(lmList... > > Please do

Re: [R] Help me please: gplot, facets_wrap and ordering of x axis dates

2013-05-14 Thread John Kane
ave a look at http://stackoverflow.com/questions/3744178/ggplot2-sorting-a-plot Good luck. John Kane Kingston ON Canada > -Original Message- > From: david_ly...@yahoo.com > Sent: Tue, 14 May 2013 12:59:07 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] H

Re: [R] Help me please: gplot, facets_wrap and ordering of x axis dates

2013-05-15 Thread John Kane
what I mean. Again my applogies for completely misreading the problem John Kane Kingston ON Canada # library(lubridate) library(ggplot2) dat1 <- structure(list(id = c(1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 4L, 4L, 4L, 4L, 4L, 4L, 5L, 5L, 5L,

Re: [R] Three plots with logged X-axis in the same plot

2013-05-16 Thread John Kane
https://github.com/hadley/devtools/wiki/Reproducibility John Kane Kingston ON Canada > -Original Message- > From: patrik.oha...@mpa.se > Sent: Thu, 16 May 2013 11:50:20 + > To: r-help@r-project.org > Subject: [R] Three plots with logged X-axis in the same plot > >

Re: [R] Three plots with logged X-axis in the same plot

2013-05-16 Thread John Kane
+ > To: jrkrid...@inbox.com, r-help@r-project.org > Subject: SV: [R] Three plots with logged X-axis in the same plot > > > > Hi John, Thank you for your input! The thing is that the graph would be > to messy if I plotted all the data in a single plot. I wish I could shar

Re: [R] erreur dans R

2013-05-16 Thread John Kane
/wiki/Reproducibility John Kane Kingston ON Canada > -Original Message- > From: taharaym...@yahoo.fr > Sent: Wed, 15 May 2013 10:14:42 +0100 (BST) > To: r-help@r-project.org > Subject: [R] erreur dans R > > Bonjour, > dans la computation de mon modhle dans R ave

Re: [R] Error: contrasts can be applied only to factors with 2 or more levels

2013-05-16 Thread John Kane
Beautiful first question. 333 ch.list <- lmList(h12~spp+t+w+l+inih|id, data=mydata) Should that not be data= chm John Kane Kingston ON Canada > -Original Message- > From: ebel...@purdue.edu > Sent: Thu, 16 May 2013 15:05:35 + > To: r-help@r-project.org >

Re: [R] Problem with ordiellipse coloured factor in Vegan

2013-05-17 Thread John Kane
No data. The list tends to strip out many kinds of attachements including csv files. I'd suggest trying .txt or parking the data at someplace like [url=http://www.mediafire.com/][b]MediaFire[/b][/url] or Dropbox [url=https://www.dropbox.com/][b]Dropbox[/b][/url] John Kane Kingston ON C

Re: [R] help

2013-05-17 Thread John Kane
m <- as.matrix(var) John Kane Kingston ON Canada > -Original Message- > From: akhgar.masu...@gmail.com > Sent: Fri, 17 May 2013 22:45:22 +0430 > To: r-help@r-project.org > Subject: [R] help > > Hello, > > I fail to tranfer data from a dataframe t

Re: [R] exporting data into STATA

2013-05-18 Thread John Kane
e http://www.theasciicode.com.ar/ for a list write.dta(mydata, file = "stata.dta") John Kane Kingston ON Canada > -Original Message- > From: niklasfischer...@gmail.com > Sent: Sat, 18 May 2013 15:05:57 +0200 > To: r-help@r-project.org > Subject: [R] exporting data into

Re: [R] formatting column names of data frame

2013-05-18 Thread John Kane
.Names = c("Record", "Average", "Maximum"), class = "data.frame", row.names = c(NA, -3L)) names(x) <- c("Record", "\\textbf{Average}", "Maximum") x <- xtable( x ) print( x, sanitize.text.function = function(x){x} ) ###=

Re: [R] Something Very Easy

2013-05-22 Thread John Kane
Using arun, data set, dat1 Is this type of thing what you want? dat2 <- subset(dat1, dat1$Play != "B" & dat1$Offense == "Y") with(dat2,table(Play, Offense)) John Kane Kingston ON Canada > -Original Message- > From: smartpink...@yahoo.com > Sent:

[R] xtable() with booktabs option problem

2013-05-24 Thread John Kane
lar}{rr} \hline & V1 \\ \hline a & 15 \\ b & 11 \\ c & 13 \\ d & 14 \\ e & 10 \\ f & 12 \\ g & 10 \\ h & 6 \\ i & 9 \\ \hline \end{tabular} \end{table} What stunningly stupid thin

Re: [R] xtable() with booktabs option problem

2013-05-24 Thread John Kane
i knew it was something stunningly stupid. Thanks a lot. John Kane Kingston ON Canada > -Original Message- > From: marc_schwa...@me.com > Sent: Fri, 24 May 2013 14:41:52 -0500 > To: jrkrid...@inbox.com > Subject: Re: [R] xtable() with booktabs option problem > >

Re: [R] How to plot two functions a(t) & b(t) along with x & y axes respectively in r ?

2013-05-25 Thread John Kane
It would be nice if you told us what an OC curve is. If it is a Operations Curve or something like it have a look at the pROC package. It may do what you want. If that's not it, please actually tell us the names of the curves not just the initials. John Kane Kingston ON C

Re: [R] Indexing within by statement - different coloured lines in abline wanted..

2013-05-27 Thread John Kane
Slightly diffferent approach but will this do what you want. library(ggplot2) ggplot(Data1, aes(Predictor, Response1, colour = Site)) + geom_smooth(method= "lm", se = FALSE) + ggtitle("Raw data with linear regresssions by Site") John Kane Kingston ON Canada >

Re: [R] Rank Amateur Question

2013-05-29 Thread John Kane
Second the RStudio but also suggest Tinn-R for a beginner as the more extenseve code highlighting can be very useful. John Kane Kingston ON Canada > -Original Message- > From: rb...@atsu.edu > Sent: Wed, 29 May 2013 08:17:47 -0500 > To: gibsons...@cox.net > Subjec

Re: [R] highlight points in lattice cloud plot

2013-05-29 Thread John Kane
No attachment. The R-help list tendst to strip out many type of attached files though pdf and txt , among others get through. It is better to supply the example in the email itself if possible. Have a look at https://github.com/hadley/devtools/wiki/Reproducibility for suggestions. John Kane

Re: [R] write table without quotation marks in column names....

2013-05-30 Thread John Kane
?write.table write.table(cars, quote=FALSE) John Kane Kingston ON Canada > -Original Message- > From: wewol...@gmail.com > Sent: Thu, 30 May 2013 10:13:26 +0200 > To: r-help@r-project.org > Subject: [R] write table without quotation marks in column names > >

Re: [R] how to install R 3.0.1

2013-05-31 Thread John Kane
http://www.r-project.org/ and go from there I imagine. You did not supply any information about your operating system so it is difficult to give more detailed advice. John Kane Kingston ON Canada > -Original Message- > From: upananda.p...@gmail.com > Sent: Fri, 31 May 2013

Re: [R] how to install R 3.0.1

2013-05-31 Thread John Kane
Sorry I misread your post. Just download the 3.0.1 for Windows and install. You will need to reinstall any additional packages that you have installed. John Kane Kingston ON Canada > -Original Message- > From: upananda.p...@gmail.com > Sent: Fri, 31 May 2013 18:11:28 +053

Re: [R] how to install R 3.0.1

2013-05-31 Thread John Kane
st of what is installed on your machine. John Kane Kingston ON Canada > -Original Message- > From: upananda.p...@gmail.com > Sent: Fri, 31 May 2013 19:10:39 +0530 > To: > Subject: Re: [R] how to install R 3.0.1 > > Hi John, > > Thanks for your reply .How

Re: [R] Returning combine output from R loop

2013-05-31 Thread John Kane
One way is to put them in a list. Does this help? a0 <- data.frame(initial_size=sample(30,10),sp=gl(2,5,10), grow=as.numeric(as.character(gl(2,5,10)))*0.5) a2<- list() for( i in 1:3){ a1 <- a0$initial_size+a0$grow a2[[i]] <- cbind(sp=a0$sp,initial_size=a1+i,yr=i)

Re: [R] question about trpaths

2013-05-31 Thread John Kane
This might supply a hint on what to look for. https://stat.ethz.ch/pipermail/r-help/2009-July/204388.html John Kane Kingston ON Canada > -Original Message- > From: ecol...@hotmail.com > Sent: Fri, 31 May 2013 12:06:38 + > To: r-help@r-project.org > Subject: [R]

Re: [R] how to install R 3.0.1

2013-05-31 Thread John Kane
Arh, a sloppy copy and paste. Thanks John Kane Kingston ON Canada > -Original Message- > From: maitra.mbox.igno...@inbox.com > Sent: Fri, 31 May 2013 11:59:05 -0500 > To: r-h...@stat.math.ethz.ch > Subject: Re: [R] how to install R 3.0.1 > > Hi John, >

Re: [R] how to install R 3.0.1

2013-06-01 Thread John Kane
Thanks Uwe. installed.packages() is definitely faster and better. I don't think I even knew installed.packages() existed. I think I gave up looking for something like it a year or so ago. John Kane Kingston ON Canada > -Original Message- > From: lig...@statistik.tu-

[R] Scale package change comma defaults?

2013-06-02 Thread John Kane
Error in format.default(x, ..., big.mark = ",", scientific = FALSE, trim = TRUE) : formal argument "big.mark" matched by multiple actual arguments And since I'm here I might as well ask if there is a way to keep a couple fo decemal points rather than rounding to t

Re: [R] Scale package change comma defaults?

2013-06-03 Thread John Kane
Thanks Ben, I did just that after getting Duncan's reply. I should have seen it myself but for some reason thought I could treat it as an option. Myopia at its best. John Kane Kingston ON Canada > -Original Message- > From: bbol...@gmail.com > Sent: Sun, 2 Jun 2013 20:57

Re: [R] delete active dataset

2013-06-03 Thread John Kane
It sounds like you inadvertently saved a workspace file. Have a look in your current directory and see if there is an .RDATA file there that you don't recognize. If so, delete it. John Kane Kingston ON Canada > -Original Message- > From: ye...@lbl.gov > Sent: Mon, 3 Jun

Re: [R] delete active dataset

2013-06-04 Thread John Kane
Thanks David. I totally forgot that and I had that problem on Windows 3-4 years ago before moving to linux. John Kane Kingston ON Canada > -Original Message- > From: dwinsem...@comcast.net > Sent: Mon, 3 Jun 2013 17:18:24 -0700 > To: jrkrid...@inbox.com > Subject: Re: [R

Re: [R] reshape2 issue continued

2013-06-05 Thread John Kane
Interestingly enoughhelp(cast) did not work but ?cast does As Ista says, there is no cast() in reshape2 John Kane Kingston ON Canada > -Original Message- > From: tea...@gmail.com > Sent: Wed, 5 Jun 2013 11:55:43 -0400 > To: neotropical.b...@gmail.com > Subject: Re: [R]

Re: [R] reshape2 issue solved Tnx!

2013-06-05 Thread John Kane
Yes , I think it was only a year or two ago that the change occured. John Kane Kingston ON Canada > -Original Message- > From: neotropical.b...@gmail.com > Sent: Wed, 05 Jun 2013 15:26:25 -0400 > To: r-help@r-project.org > Subject: [R] reshape2 issue solved Tnx! &g

Re: [R] How to display multiples lines with different color on the same plot?

2013-06-05 Thread John Kane
Try: library(ggplot2) ggplot(mtcars, aes(mpg, qsec, colour = as.factor(gear))) + geom_point() + geom_smooth(method = lm, se = FALSE) You probably will have to melt your data to get into the right format. John Kane Kingston ON Canada > -Original Message- > From: arm

Re: [R] generating a bar chart with two axis for co-linear variable

2013-06-06 Thread John Kane
I think we really need to see the code. John Kane Kingston ON Canada > -Original Message- > From: sudha.krish...@marlabs.com > Sent: Thu, 6 Jun 2013 06:37:41 + > To: r-help@r-project.org > Subject: [R] generating a bar chart with two axis for co-linear variable &

Re: [R] reshaping a data frame

2013-06-10 Thread John Kane
Unless I completely misunderstand what you are doing you don't need to aggregate, just drop the one column and rename things newtemp <- temp_df[, c(1,3)] names(newtemp) <- c("names", "w") newtemp John Kane Kingston ON Canada > -Original Message--

Re: [R] All against all correlation matrix with GGPLOT Facet

2013-06-10 Thread John Kane
No image. The R-help list tends to strip out a lot of files. A pdf or txt usually gets through. In any case I understand what you want this may do it. library(ggplot2) dat1 <- data.frame( v = rnorm(13), w = rnorm(13), x = rnorm(13), y = rnorm(13), z = rnorm(13)) plotmatrix(dat1) John K

Re: [R] Substituting the values on the y-axis

2013-06-10 Thread John Kane
Just calculate a new sequence if those percentages are in an orderly sequence. See ?seq v <- seq(25, 200, by = 10) or perhaps the values are actually text ?substr x <- substr(v, 1,2) John Kane Kingston ON Canada > -Original Message- > From: diddle1...@fastwebnet.it

Re: [R] Substituting the values on the y-axis

2013-06-10 Thread John Kane
efinately have helped. Many or most R-help readers do not use nabble and really hate to have to go there to see the context of a message. You should always leave the important parts of earlier messages to let the R-help reader see what the problems and other suggested solutions may be.

[R] ggpairs in GGally replaces plotmatrix in ggplot2

2013-06-11 Thread John Kane
Hi Keith,, ggpairs(dat1, upper = list(continuous = "density", combo = "box")) appears to be what you want. John Kane Kingston ON Canada > -Original Message- > From: kw1...@gmail.com > Sent: Tue, 11 Jun 2013 09:25:48 -0400 > To: r-help@r-project.org

Re: [R] ggpairs in GGally replaces plotmatrix in ggplot2

2013-06-11 Thread John Kane
code works fine and fairly fast in a terminal. John Kane Kingston ON Canada > -Original Message- > From: jrkrid...@inbox.com > Sent: Tue, 11 Jun 2013 06:48:31 -0800 > To: kw1...@gmail.com, r-help@r-project.org > Subject: [R] ggpairs in GGally replaces plotmatrix in ggplot2

Re: [R] ggpairs in GGally replaces plotmatrix in ggplot2

2013-06-11 Thread John Kane
ave to ask RStudio about the speed and crashes. John Kane Kingston ON Canada > -Original Message- > From: kw1...@gmail.com > Sent: Tue, 11 Jun 2013 16:06:08 -0400 > To: jrkrid...@inbox.com > Subject: Re: ggpairs in GGally replaces plotmatrix in ggplot2 > > John, >

Re: [R] assigning global columns selection for all subset functions in script

2013-06-11 Thread John Kane
index the columns to select lets say you want to select a set of colmns 2,4,6,8 Try something like this. (not run) mycols <- c(2,4,6,8) select(mydata[ , mycols] , mdata$x == 3) John Kane Kingston ON Canada > -Original Message- > From: bcrom...@utk.edu > Sent: Tue, 11 Jun 2

Re: [R] help using code

2013-06-12 Thread John Kane
Have a look at http://www.burns-stat.com/documents/tutorials/impatient-r/ . I think the section on blank screen syndrome may help. John Kane Kingston ON Canada > -Original Message- > From: montana3...@gmail.com > Sent: Tue, 11 Jun 2013 16:59:34 -0700 > To: ruipbarr

Re: [R] ggpairs in GGally replaces plotmatrix in ggplot2

2013-06-12 Thread John Kane
I'm runnng Ubuntu 12.10. John Kane Kingston ON Canada > -Original Message- > From: istaz...@gmail.com > Sent: Tue, 11 Jun 2013 17:54:55 -0400 > To: kw1...@gmail.com > Subject: Re: [R] ggpairs in GGally replaces plotmatrix in ggplot2 > > I think the ggpairs equival

Re: [R] R session freezes when I try to save a new script

2013-06-14 Thread John Kane
It would probably help if you posted your sessionInfo() Just before everything freezes issue the command sessionInfor() copy the output and paste it into an email. John Kane Kingston ON Canada > -Original Message- > From: anferg...@aol.com > Sent: Fri, 14 Jun 2013 10:52

Re: [R] Widows 8

2013-06-15 Thread John Kane
Seems unlikely but it runs on Windows 8 John Kane Kingston ON Canada > -Original Message- > From: chet.selig...@gmail.com > Sent: Sat, 15 Jun 2013 07:50:45 -0700 > To: r-help@r-project.org > Subject: [R] Widows 8 > > Can anyone confirm that R runs on Widows 8

Re: [R] Fwd: Questions about working with a dataframe

2013-06-25 Thread John Kane
results in your next email. Good luck John Kane Kingston ON Canada > -Original Message- > From: jacqueline.oe...@gmx.ch > Sent: Tue, 25 Jun 2013 16:25:59 +0200 > To: r-help@r-project.org > Subject: [R] Fwd: Questions about working with a dataframe > > > >> D

Re: [R] Fwd: Questions about working with a dataframe

2013-06-25 Thread John Kane
Ouch. My apologies David, after reading the message I didn't bother to look at the txt file. John Kane Kingston ON Canada > -Original Message- > From: dwinsem...@comcast.net > Sent: Tue, 25 Jun 2013 09:09:15 -0700 > To: jrkrid...@inbox.com > Subject: Re: [R]

Re: [R] how to add any extra word to existing column heading in R

2013-06-25 Thread John Kane
names(height) <- paste0(names(height),".D1") It would be better if you supplied the data using dput() Have a lookt at https://github.com/hadley/devtools/wiki/Reproducibility for some suggestions on forming a good question. John Kane Kingston ON Canada > -Original Mes

Re: [R] Fwd: Questions about working with a dataframe

2013-06-26 Thread John Kane
before we managed to reply Other responses in line John Kane Kingston ON Canada -Original Message- From: jacqueline.oe...@gmx.ch Sent: Wed, 26 Jun 2013 11:18:41 +0200 (CEST) To: dwinsem...@comcast.net, jrkrid...@inbox.com, r-help@r-project.org Subject: Aw: Re: [R] Fwd: Questions about

Re: [R] XYZ data

2013-06-26 Thread John Kane
mm <- 1:10 nn <- mm + .001 John Kane Kingston ON Canada > -Original Message- > From: careys...@gmail.com > Sent: Wed, 26 Jun 2013 16:48:34 +0100 > To: r-help@r-project.org > Subject: [R] XYZ data > > I have x, y, z data. The x, y fields dont change b

Re: [R] XYZ data

2013-06-27 Thread John Kane
You're right. I was in a hurry and misread the question John Kane Kingston ON Canada > -Original Message- > From: cl...@ecy.wa.gov > Sent: Wed, 26 Jun 2013 09:16:21 -0700 (PDT) > To: jrkrid...@inbox.com > Subject: Re: [R] XYZ data > > John, > > That st

Re: [R] Changing legend to fill colour in ggplot

2013-06-28 Thread John Kane
, the HTML gets dropped and any formating goes to pot. I think the actual answer is probably straight forward but we really should have the data Thanks John Kane Kingston ON Canada > -Original Message- > From: suparna.mitra...@gmail.com > Sent: Fri, 28 Jun 2013 13:25:59 +

Re: [R] choicemodelr is misbehaving under R3.0

2013-06-28 Thread John Kane
I have encountered what looks to be a problem with ggpairs in ggally. No idea it is from 3.0 as I had never used ggpairs before update to 3.0 but it sounds a bit similar http://support.rstudio.org/help/discussions/problems/6796-ggpairs-in-ggally-very-slow-in-rstudio-and-may-cause-a-crash John

Re: [R] Data Package Query

2013-06-29 Thread John Kane
ready loaded since you created it in the read statement John Kane Kingston ON Canada > -Original Message- > From: y_re...@hotmail.com > Sent: Fri, 28 Jun 2013 12:31:11 + > To: rolf.tur...@xtra.co.nz, jdnew...@dcn.davis.ca.us > Subject: Re: [R] Data Package Query > >

Re: [R] what is the difference between the function "expand.grid" and "data.frame"?

2013-06-29 Thread John Kane
function to create such an object. John Kane Kingston ON Canada > -Original Message- > From: zhaoran1...@gmail.com > Sent: Fri, 28 Jun 2013 15:30:44 +0300 > To: r-help@r-project.org > Subject: [R] what is the difference between the function "expand.grid" > and "

Re: [R] SNPRelate package error

2012-09-12 Thread John Kane
Are you sure that you have write permission to the directory that R is trying to write to? John Kane Kingston ON Canada > -Original Message- > From: joao.fadi...@med.lu.se > Sent: Wed, 12 Sep 2012 12:37:42 + > To: r-help@r-project.org > Subject: [R] SNPRelat

Re: [R] how to qplot two x-axis x1:Farenheit x2:Celsius

2012-09-12 Thread John Kane
xoKE seems to give a good idea of what has/is happening. John Kane Kingston ON Canada > -Original Message- > From: n...@jonasstein.de > Sent: Wed, 12 Sep 2012 01:29:25 +0200 > To: r-h...@stat.math.ethz.ch > Subject: [R] how to qplot two x-axis x1:Farenheit x2:Celsius >

Re: [R] help server slow

2012-09-13 Thread John Kane
It sounds like a local system problem. Are you running on a local intranet or have something cpu intenstive running in the background? John Kane Kingston ON Canada > -Original Message- > From: ldec...@comcast.net > Sent: Wed, 12 Sep 2012 18:05:19 + (UTC) > To: r-help@r

Re: [R] help server slow

2012-09-14 Thread John Kane
Well, if nothing else it is probably time to update anyway. If that does not help, we can hope that some of the gurus have some suggestions. It really sounded like a local network problem :( Best of luck John Kane Kingston ON Canada -Original Message

Re: [R] p-values in agricolae pearson correlation

2012-09-15 Thread John Kane
I have never used the package but a quick look at the manual suggests a number of corrections for multiple correlatins so you probably should look into it. See "kruskal" in the manual for a start. John Kane Kingston ON Canada > -Original Message- > From: amy_kir

Re: [R] how to view only readings of a selected data from a column while the other columns remain

2012-09-15 Thread John Kane
This looks a lot like homework. However here is a hint ABD1990 <- subset(xx, Year == 1990 & Market == "ABC") John Kane Kingston ON Canada > -Original Message- > From: jowe.tjioe.2...@business.smu.edu.sg > Sent: Sat, 15 Sep 2012 02:22:42 -0700 (PDT) > To: r

Re: [R] [newbie] aggregating table() results and simplifying code with loop

2012-09-15 Thread John Kane
to aggregate the results. Repeat for all grains. Actually look into setting the whole thing up as a function. You should be able to write the program once as a function and do a loop or an apply() to do all 11 grains in one go. Best of luck. John Kane Kingston ON Canada > -Or

Re: [R] qplot: plotting precipitation data

2012-09-15 Thread John Kane
there. p <- ggplot(mydata , aes(as.factor(start), peak )) + geom_bar(stat= "identity", ) p John Kane Kingston ON Canada > -Original Message- > From: hnorp...@googlemail.com > Sent: Sat, 15 Sep 2012 18:39:54 +0200 > To: r-help@r-project.org > Subject: [R] q

Re: [R] qplot: plotting precipitation data

2012-09-16 Thread John Kane
to plot as > first? This is far beyond my knowledge of ggplot but I would certainly think it should. as.numeric( as.factor(mydata$start))) [1] 1 2 3 4 5 6 so why would we get something like 2 3 4 5 6 1 if I am reading this correctly? > > Rui Barradas > > Em 16-09-2012 00:20, Joh

Re: [R] [newbie] aggregating table() results and simplifying code with loop

2012-09-16 Thread John Kane
attern == "FALSE+FALSE+FALSE+FALSE+TRUE" | mzcount$crop_pattern == "TRUE+FALSE+FALSE+FALSE+FALSE") m51 <- ddply(m51, .(WS), summarize, count = sum(count)) m51 = John Kane Kingston ON Canada > -Orig

Re: [R] [newbie] aggregating table() results and simplifying code with loop

2012-09-17 Thread John Kane
nd_crop , aes(crop_pattern, crop_pattern_ws )) + geom_point() + coord_flip() + facet_grid(WS ~ . ) p # save the last graph to look at it in a graphics package== still terrible ggsave( "/home/john/Rjunk/crop.png") ## > > Thanks again for the help. > Cheers, >

Re: [R] add reference lines (or grid) in background

2012-09-18 Thread John Kane
Not sure if it is quite the same but ggplot2 does this as its default formatting. library(ggplot2) x<-rnorm(100) qplot(factor(0),x, geom="boxplot") John Kane Kingston ON Canada > -Original Message- > From: marongiu.lu...@gmail.com > Sent: Tue, 18 Sep 2012 09:35:4

Re: [R] extracting values

2012-09-18 Thread John Kane
o output a formatted data set that you can copy and paste into your email. John Kane Kingston ON Canada > -Original Message- > From: kari0...@uni.flinders.edu.au > Sent: Tue, 18 Sep 2012 01:18:12 + > To: r-help@r-project.org > Subject: [R] extracting values > >

Re: [R] [newbie] aggregating table() results and simplifying code with loop

2012-09-18 Thread John Kane
e the information by Crop and Period in each element of the list to get the corresponding sums for each of the desired patterns? Thus for example in result[[1]] we get all the results for condition 19 (crops) from wanted? John Kane Kingston ON Canada > -Original Message- > From

Re: [R] [newbie] aggregating table() results and simplifying code with loop

2012-09-19 Thread John Kane
ears of SAS or SYSTAT or even SPSS. > > Everything flows without warnings, so I have the bad feeling to find > myself less smart than R... > That not a big problem, but having not understood the arguments, I do > not understand the functions (so, the results). > Thanks in advance for meeting this call for some extra-help...

Re: [R] Interaction scatterplots in ggplot with multiple regression lines

2012-09-26 Thread John Kane
Some like this help? mydata$modnew <- cut(mydata$moderator, 7) ggplot(mydata, aes(x=predictor, y=outcome, color=modnew)) + geom_point() + stat_smooth(method=lm, se=TRUE, fullrange=T) John Kane Kingston ON Canada > -Original Message- > From: dadr...@gmail.com > Sent: Wed,

Re: [R] Retrieve regression summary results after rq

2012-09-26 Thread John Kane
summary(fit1) perhaps/ John Kane Kingston ON Canada > -Original Message- > From: cacamende...@gmail.com > Sent: Wed, 26 Sep 2012 11:39:30 -0300 > To: r-help@r-project.org > Subject: [R] Retrieve regression summary results after rq > > Hi all, > > I am usi

Re: [R] geom_line: How to plot two data sets having different maximum X-axis values in a single plot?

2012-09-26 Thread John Kane
Clumsy but this should do it. aa$set <- rep("a", length(aa$position)) bb$set <- rep("b", length(bb$position)) (mydata <- rbind(aa,bb)) p <- ggplot( mydata , aes( position, count, colour = set )) + geom_line() p John Kane Kingston ON Canada >

Re: [R] Retrieve regression summary results after rq

2012-09-26 Thread John Kane
Strange, I have never used it but presumably you are using the package ‘survey’? The manual suggests summary(xx) should work. What results or error messages do you get? John Kane Kingston ON Canada > -Original Message- > From: cacamende...@gmail.com > Sent: Wed, 26 Sep 2012

Re: [R] boxplot of different colors

2012-09-26 Thread John Kane
distance, colour = Diet_B )) + geom_boxplot() + xlab("Migration") + ylab("Distance") p John Kane Kingston ON Canada > -Original Message- > From: r...@temple.edu > Sent: Mon, 24 Sep 2012 19:00:09 -0400 > To: elaine.kuo...@gmail.com > Subject: Re:

Re: [R] Latitude Longitude to SPDF

2012-09-26 Thread John Kane
I think I know considerably less than you do but have a look as the sp package. I think you are referring to and object type SpatialPolygonsDataFrame" from the package sp or which that package will produce. Good luck. Now to install rgdal. John Kane Kingston ON Canada > -

Re: [R] norm tables

2012-09-30 Thread John Kane
lable psychometric packages if that helps. John Kane Kingston ON Canada > -Original Message- > From: fronc...@vizja.pl > Sent: Sat, 29 Sep 2012 22:36:47 +0200 > To: r-help@r-project.org > Subject: [R] norm tables > > Dear all, > > Is anybody knows simple met

Re: [R] smoothScatter plot

2012-10-02 Thread John Kane
It's hard to know what's wrong with your code since you did not supply it. Please supply a small working example and some data. To supply data use the dput() function, see ?dput() for details. John Kane Kingston ON Canada > -Original Message- > From: zhyjiang

Re: [R] (no subject)

2012-10-02 Thread John Kane
It's hard to know what's wrong since you did not supply your code. Please supply a small working example and some data. To supply data use the dput() function, see ?dput() for details. Welcome to R. John Kane Kingston ON Canada > -Original Message- > From: mbh

Re: [R] (no subject)

2012-10-03 Thread John Kane
t;yes", "yes", "yes", "yes", "no", "no", "no", "no", "no", "yes", "yes", "yes", "yes", "no", "no", "no"), v1 = c(0.2, 0.3, 0.3, 0.4, 0.3, 0.3, 0.3

Re: [R] smoothScatter plot

2012-10-04 Thread John Kane
<- to the output. Your method works just fine but it's a bit more cumbersome with a lot of data. Also, please reply to the R-help list as well. It is a source of much more expertise than me and it also can reply when a single person is unavailable. I hope this helps Jo

Re: [R] smoothScatter plot

2012-10-05 Thread John Kane
In line John Kane Kingston ON Canada -Original Message- From: zhyjiang2...@hotmail.com Sent: Fri, 5 Oct 2012 05:41:29 +0800 To: jrkrid...@inbox.com Subject: RE: [R] smoothScatter plot Hi John, Thanks for your email. Your way works good. However, I

Re: [R] Presence/ absence data from matrix to single column

2012-10-06 Thread John Kane
Try the reshape2 package. You will probablly have to install the package. install.packages("reshape2) with your data as xx : library(reshape2) melt(xx, id =c("Year", "Route", "Point")) seems to do what you want. John Kane Kingston ON Canada > --

Re: [R] Calculating the mean in one column with empty cells

2012-10-06 Thread John Kane
Where is the csv data coming from? If it is an export from a spreadsheet, Excel (and others?) has a nasty habit of exporting "as displayed" rather than the actual number as it's default. John Kane Kingston ON Canada > -Original Message- > From: f.seha...@gma

Re: [R] smoothScatter plot

2012-10-06 Thread John Kane
give you something similar to smoothScatter() but probably without the colours though a question on the google groups ggplot2 group might help. Good luck Good luck, John Kane Kingston ON Canada -Original Message- From: zhyjiang2...@hotmail.com Sent: Sat, 6 Oct 2012 01:01:41 +0800 To

Re: [R] Multiple graphs > boxplot

2012-10-06 Thread John Kane
es = c(NA, -6L)) y1 <- melt(yy) # using reshape2 ggplot(y1, aes(variable, value))+ geom_boxplot() # or ggplot(y1, aes(variable, value))+ geom_boxplot() + facet_grid(variable ~ .) John Kane Kingston ON Canada > -Original Message- > From: dagr...@hotmail.com > Sent: Fr

Re: [R] time extraction and normalization

2012-10-16 Thread John Kane
For some reason this seems to work: d <- "04MAY2011:08:19:00" toDaySecond(d) John Kane Kingston ON Canada > -Original Message- > From: smartpink...@yahoo.com > Sent: Tue, 16 Oct 2012 05:22:29 -0700 (PDT) > To: sleepingw...@gmail.com > Subject:

Re: [R] library(rmeta)

2012-10-16 Thread John Kane
lly, dput(head(testfile, 100)) will be sufficient. John Kane Kingston ON Canada > -Original Message- > From: farnoosh...@yahoo.com > Sent: Mon, 15 Oct 2012 12:31:12 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] library(rmeta) > > Hello, > >

Re: [R] Pivot Table "like" structure

2012-10-16 Thread John Kane
quot;ABCD", "EFGH", "FGHJ", ""), class = "factor"), Char3 = structure(c(1L, 1L, 2L, 3L, 1L, 1L, 2L, 3L), .Label = c("ASDFG", "D", "EE"), class = "factor")), .Names = c("Coutry", "St

Re: [R] RColorBrewer

2012-10-22 Thread John Kane
stdout.org/rcookbook/Graphs/Colors%20%28ggplot2%29/ whhich may be of use if you are using ggplot2, or perhaps even if you are not. John Kane Kingston ON Canada > -Original Message- > From: abrut...@bennington.edu > Sent: Fri, 19 Oct 2012 11:50:26 -0700 (PDT) > To: r-help@r-pro

Re: [R] Axis Breaks with ggplot2

2012-10-22 Thread John Kane
55, 65), cc <- 1:5, bb = c("a","a","a","b","b")) str(xx) gbar <- ggplot(xx, aes(cc, aa, fill= cc)) + geom_bar(stat="identity") gbar + facet_grid(bb ~ .) John Kane Kingston ON Canada > -Original Message- > Fr

Re: [R] Error unary operator

2012-10-30 Thread John Kane
it looks like facet_grid(Aeventexhumed ~ Rayos) + geom_smooth(method="lm", fill=NA) + ylim(c(0, 7)) should read facet_grid(Aeventexhumed ~ Rayos) + geom_smooth(method="lm", fill=NA) + ylim(c(0, 7)) In ggplot the + must be on the preceding line. John Kan

Re: [R] create 3x2 panel boxplots

2012-10-30 Thread John Kane
uot;), 11), cc <- rnorm(66)) p <- ggplot(mydata , aes( bb, cc ))+ geom_boxplot() + facet_wrap( ~ aa ) p Setting up the overall plot with titles, etc., can take a bit of time and head-pounding, but if you are doing a lot of graphs

<    4   5   6   7   8   9   10   11   12   13   >