[R] OdfWeave problem

2013-12-17 Thread John Kane
i686 unknown user effective_user john john John Kane Kingston ON Canada

Re: [R] OdfWeave problem

2013-12-17 Thread John Kane
not used odfWeave in at least a year as I like LyX/knitr better but I recommended that an AOO user try it and figured I should at least be able to answer a few simple questions. John Kane Kingston ON Canada -Original Message- From: murdoch.dun...@gmail.com Sent: Tue, 17 Dec 2013 10:26:01

Re: [R] OdfWeave problem

2013-12-17 Thread John Kane
Thanks. As you will see from my reply I misread the manual and it shoud have been results = xml and I had tried XML. And result = 'asis' works too. I had thought it was unique to knitr and never thought to try it. Thanks John Kane Kingston ON Canada -Original Message- From

Re: [R] Hello R user!

2013-12-17 Thread John Kane
-r-reproducible-example To answer your question probably you want to have a look a mfcol or mfrow under ?par. John Kane Kingston ON Canada -Original Message- From: mbhpat...@gmail.com Sent: Tue, 17 Dec 2013 09:33:30 -0800 To: r-help@r-project.org Subject: [R] Hello R user! Hello

Re: [R] Plotting multiple trends on one graph

2013-11-25 Thread John Kane
)) + geom_point() + facet_grid(TagID ~ .) John Kane Kingston ON Canada -Original Message- From: nhoughto...@gmail.com Sent: Sun, 24 Nov 2013 08:49:03 -0800 To: r-help@r-project.org Subject: [R] Plotting multiple trends on one graph Hello all, I am tracking hundreds of animals

Re: [R] making a barplot with table of experimental conditions underneath (preferably ggplot2)

2013-11-15 Thread John Kane
Oops, that last line of code should read df.plot + scale_x_discrete( labels = df$labs) John Kane Kingston ON Canada -Original Message- From: jrkrid...@inbox.com Sent: Thu, 14 Nov 2013 09:02:19 -0800 To: n.hub...@ncmls.ru.nl, r-help@r-project.org Subject: RE: [R] making a barplot

Re: [R] R Beginner - Need Perhaps 5 - 10 Minutes of R User Time to Learn Few Basics

2013-11-14 Thread John Kane
session should look more or less like this http://www.rstudio.com/ide/ . If you don't have those four panels then you have an RStudio problem. John Kane Kingston ON Canada -Original Message- From: zfeinst...@isgmn.com Sent: Wed, 13 Nov 2013 13:57:17 + To: r-help@r-project.org

Re: [R] making a barplot with table of experimental conditions underneath (preferably ggplot2)

2013-11-14 Thread John Kane
)+ geom_point(fill=grey)+ geom_errorbar(aes(x=experiment, ymin=mean-stdev, ymax=mean+stdev), width=0.25) p + scale_x_discrete( labels = df$labs) I hop John Kane Kingston ON Canada -Original Message- From: n.hub...@ncmls.ru.nl Sent: Wed, 13 Nov 2013 14:24:28 + To: r-help@r

Re: [R] Newbie Question: Repeatable Tasks

2013-11-04 Thread John Kane
Just type the commands in the Source window of RStudioo, debug, save as a .r file and source it. I don't see any particular reason to have three scripts once everything is running correctly but you may find it useful. John Kane Kingston ON Canada -Original Message- From: csvirt

Re: [R] help with ggplot legend specification

2013-11-04 Thread John Kane
(shape=21,colour=black) pl + theme(legend.key.size = unit(2, cm)) John Kane Kingston ON Canada -Original Message- From: mike.conk...@gfk.com Sent: Thu, 31 Oct 2013 21:08:02 +0100 To: r-help@r-project.org Subject: [R] help with ggplot legend specification I am creating

Re: [R] Make Multiple plots in R

2013-10-31 Thread John Kane
Without knowing what the data looks like it is a bit difficult to know. See ?dput on how to supply sample data. However I think that something like the ggplot2 package would be a good way to go, John Kane Kingston ON Canada -Original Message- From: j.kipl...@cgiar.org Sent: Thu

Re: [R] ggplot2 - how to get rid of bar boarder lines

2013-10-31 Thread John Kane
At a guess, don't use colour. John Kane Kingston ON Canada -Original Message- From: dimitri.liakhovit...@gmail.com Sent: Wed, 30 Oct 2013 14:11:37 -0400 To: r-help@r-project.org Subject: [R] ggplot2 - how to get rid of bar boarder lines Hello! I am using ggplot2: ggplot

Re: [R] Errore : requires numeric/complex matrix/vector arguments

2013-10-20 Thread John Kane
as described in the links: https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example Welcome to the R-help list John Kane Kingston ON Canada -Original Message- From: valentina...@hotmail.it Sent: Sun

Re: [R] Want to create a histogram

2013-10-20 Thread John Kane
ggplot2 package install.packages(ggplot2) library(ggplot2) dat1 - data.frame( aa = c(very bad, bad, fair, good, very good), bb = c(159, 374, 3765, 11388, 6708)) ggplot(dat1, aes(aa, bb)) + geom_bar(stat=identity) John Kane Kingston ON Canada -Original Message- From: kan

Re: [R] Interpreting the result of a Wilcoxon (Mann-Whitney U) test

2013-10-05 Thread John Kane
+1 John Kane Kingston ON Canada -Original Message- From: j...@bitwrit.com.au Sent: Sat, 05 Oct 2013 17:16:35 +1000 To: r-help@r-project.org Subject: Re: [R] Interpreting the result of a Wilcoxon (Mann-Whitney U) test On 10/04/2013 11:34 PM, S Ellison wrote: ... Got it! I

Re: [R] Importing odf file into R

2013-10-04 Thread John Kane
Assuming you want to read in data from an AOO or LO spreadsheet, have a look at the gnumeric package. I have only used it once or twice but it seems to work well and is quite flexible. John Kane Kingston ON Canada -Original Message- From: pmaclean2...@yahoo.com Sent: Thu, 3 Oct

Re: [R] abline is not plotting

2013-10-04 Thread John Kane
Well you logged the x and y values before plotting but did not log the lm(). I think this means you have plotted abline() off the scale. I'm not sure how to fix it though. John Kane Kingston ON Canada -Original Message- From: hans_han...@gmx.de Sent: Fri, 4 Oct 2013 07:16:49

Re: [R] quote a column of a dataframe by its name

2013-10-04 Thread John Kane
X[,names(X)[4]] works fine for me. I had never thought of doing this. Neat idea. John Kane Kingston ON Canada -Original Message- From: jimmycl...@gmail.com Sent: Fri, 4 Oct 2013 12:06:50 -0400 To: r-help@r-project.org Subject: [R] quote a column of a dataframe by its name

Re: [R] Drawing garbled

2013-10-04 Thread John Kane
Do you have the correct fonts installed on Windows? John Kane Kingston ON Canada -Original Message- From: cels...@163.com Sent: Wed, 2 Oct 2013 23:51:58 +0800 (CST) To: r-help@r-project.org Subject: [R] Drawing garbled Hi: I am Chinese, I am developing a java application

Re: [R] barplot - easy for experienced, difficult for me

2013-10-01 Thread John Kane
(mdat, aes(Invertibrate, Count, fill = park)) + geom_bar(stat=identity) + facet_grid(park ~ .) + theme(legend.position=none) John Kane Kingston ON Canada -Original Message- From: tobi_gebetsber...@gmx.at Sent: Mon, 30 Sep 2013 06:05:09 -0700 (PDT) To: r-help@r-project.org Subject

Re: [R] Why does sin(pi) not return 0?

2013-09-26 Thread John Kane
Definitely a Fortune. John Kane Kingston ON Canada -Original Message- From: rai...@krugs.de Sent: Thu, 26 Sep 2013 11:30:27 +0200 To: r-h...@stat.math.ethz.ch Subject: Re: [R] Why does sin(pi) not return 0? (Ted Harding) ted.hard...@wlandres.net writes: On 26-Sep-2013 07:55

Re: [R] request for help in R

2013-09-26 Thread John Kane
John Kane Kingston ON Canada -Original Message- From: atta_...@yahoo.com Sent: Wed, 25 Sep 2013 23:16:48 -0700 (PDT) To: jrkrid...@inbox.com Subject: Re: [R] request for help in R hi, i have data for 15 gauging stations of different rivers and for monthly maxmimum flows data, i want

Re: [R] search species with all absence in a presence-absence matrix

2013-09-20 Thread John Kane
Once you learn to use dput() I am sure someone will be happy to help you. http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada -Original Message- From: elaine.kuo...@gmail.com Sent: Sat, 21 Sep 2013 07:14:38 +0800

Re: [R] Renaming variables

2013-09-20 Thread John Kane
Depending on what your doing perhaps with() could help? Or assuming a data.frame or matrix, score[ , 25] will give you Score$X25 If you would supply a bit more information (and code) about what you are doing we probably can help more. John Kane Kingston ON Canada -Original Message

Re: [R] (no subject)

2013-09-18 Thread John Kane
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada -Original Message- From: algara...@gmail.com Sent: Wed, 18 Sep 2013 10:06:23 +0800 To: r-help@r-project.org Subject: [R] (no subject) Good morning, I am

Re: [R] ggplot2: changing shapes facet_grid - special case.

2013-09-18 Thread John Kane
Does this questions help http://stackoverflow.com/questions/1478532/changing-shapes-used-for-scale-shape-in-ggplot2 ? It looks like it does but I don't have time at the moment to work it out with your code. Good luck John Kane Kingston ON Canada -Original Message- From

Re: [R] Fwd: axis lab font in r

2013-09-17 Thread John Kane
-td3009882.html x-rnorm(100) hist(x,axes=F,font.lab=12,font.main=9) axis(1,font.axis=4) axis(2,font.axis=3) John Kane Kingston ON Canada -Original Message- From: ahmedati...@gmail.com Sent: Tue, 17 Sep 2013 11:23:02 -0500 To: r-help@r-project.org Subject: [R] Fwd: axis lab font in r

Re: [R] Problem with installing the TRR package

2013-09-04 Thread John Kane
The latest release (2013-05-16, Good Sport) R-3.0.1 so perhaps you need to upgrade to 3.0.1? John Kane Kingston ON Canada -Original Message- From: lucien.blanden...@unine.ch Sent: Wed, 4 Sep 2013 15:05:03 + To: r-help@r-project.org Subject: [R] Problem with installing the TRR

Re: [R] Issue with R libraries

2013-08-31 Thread John Kane
What error messages etc are you getting? What actual commands are you using? sessionInfo? John Kane Kingston ON Canada -Original Message- From: prakash.dev-ku...@hp.com Sent: Sat, 31 Aug 2013 03:35:37 -0700 (PDT) To: r-help@r-project.org Subject: [R] Issue with R libraries I

Re: [R] how to generate graphs for multiple regressions

2013-08-31 Thread John Kane
This is not a mailing list for people's homework. John Kane Kingston ON Canada -Original Message- From: bal.chan...@gmail.com Sent: Sat, 31 Aug 2013 12:07:22 +0530 To: r-help@r-project.org Subject: [R] how to generate graphs for multiple regressions please explain with small

Re: [R] (no subject)

2013-08-30 Thread John Kane
/ Good luck. Oh and R is much nicer than SPSS. Come join us. John Kane Kingston ON Canada -Original Message- From: joanasco...@hotmail.com Sent: Fri, 30 Aug 2013 14:27:37 +0100 To: r-help@r-project.org Subject: [R] (no subject) good afternoon, I4m writting because I4m having some

Re: [R] strange conversion char to date

2013-08-30 Thread John Kane
Maybe there is some built-in assumption about dating and when to change to the new century. It seems to kick-in at 1968 as.Date(25/04/69, %d/%m/%y) as.Date(25/04/68, %d/%m/%y) as.Date(25/04/60, %d/%m/%y) John Kane Kingston ON Canada -Original Message- From: frans.marcelis

Re: [R] Validating data type

2013-08-30 Thread John Kane
amoutnt will do , so dput(head(mydata, 100) for example will supply 100 rows of data. Below is a example of a data.frame in dput format. Just copy and paste it into R and you will have a new date.frame John Kane Kingston ON Canada ##dput file=== dat1

Re: [R] Few doubts about ANOVA

2013-08-29 Thread John Kane
Looks like school is starting up again. We don't usually help with homework especially at this level. Read a text book John Kane Kingston ON Canada -Original Message- From: bal.chan...@gmail.com Sent: Thu, 29 Aug 2013 15:57:29 +0530 To: r-help@r-project.org Subject: [R] Few doubts

Re: [R] Plotting time vs number

2013-08-29 Thread John Kane
Please use dput() to supply data. It's a lot easier for readers to just copy and paste into R. I have no idea of what variables are associated with the columns below. John Kane Kingston ON Canada -Original Message- From: mohan.radhakrish...@polarisft.com Sent: Thu, 29 Aug 2013 09

Re: [R] netlogo r-extension loadlibrary() failures

2013-08-28 Thread John Kane
collection of quotes. John Kane Kingston ON Canada FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks orcas on your desktop! __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Scale of axis for two data sets

2013-08-27 Thread John Kane
I am misreading something here I think. Why are you graphing against a constant? John Kane Kingston ON Canada -Original Message- From: mohan.radhakrish...@polarisft.com Sent: Tue, 27 Aug 2013 13:28:48 +0530 To: r-help@r-project.org Subject: [R] Scale of axis for two data sets Hi

Re: [R] Scale of axis for two data sets

2013-08-27 Thread John Kane
double-axis graphs is rather negative. However, I know they are standard in some disciplines. John Kane Kingston ON Canada -Original Message- From: mohan.radhakrish...@polarisft.com Sent: Tue, 27 Aug 2013 17:08:51 +0530 To: jrkrid...@inbox.com Subject: RE: [R] Scale of axis for two data

Re: [R] Naming columns

2013-08-27 Thread John Kane
names(mydatat) - c(V1,V2,V3) For future reference https://github.com/hadley/devtools/wiki/Reproducibility and/or http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada -Original Message- From: mban...@partners.org Sent

Re: [R] Pasting excell spreedsheet into notepad for R

2013-08-27 Thread John Kane
If I understand you correctly just import the data into R as a data.frame and then use the unlist() command. John Kane Kingston ON Canada -Original Message- From: mban...@partners.org Sent: Mon, 26 Aug 2013 09:06:12 -0700 (PDT) To: r-help@r-project.org Subject: [R] Pasting excell

Re: [R] Scale of axis for two data sets

2013-08-27 Thread John Kane
one on top of the other , with the top graph having the 'higher' values. However it is a judgement call and also dependent on the discipline. Anyway see the quick and dirty attempt attached to see what I am suggesting. John Kane Kingston ON Canada -Original Message- From

Re: [R] Scale of axis for two data sets

2013-08-27 Thread John Kane
Jim, With those ranges isn't Mohan going to lose discrimination? That's one reason I suggested a two-panel approach. John Kane Kingston ON Canada -Original Message- From: j...@bitwrit.com.au Sent: Tue, 27 Aug 2013 22:36:12 +1000 To: mohan.radhakrish...@polarisft.com Subject: Re

Re: [R] Scale of axis for two data sets

2013-08-27 Thread John Kane
night/week. Good luck. John Kane Kingston ON Canada -Original Message- From: mohan.radhakrish...@polarisft.com Sent: Tue, 27 Aug 2013 18:21:45 +0530 To: jrkrid...@inbox.com Subject: RE: [R] Scale of axis for two data sets Thanks. There is one more idea from Jim Lemon which can also help

Re: [R] find row name with specific value

2013-08-27 Thread John Kane
Well I don't see anything that looks like a year but go from this dat1[match(2, dat1$samp.depth),] and pick off what you want I guess John Kane Kingston ON Canada -Original Message- From: catalinro...@gmail.com Sent: Tue, 27 Aug 2013 20:46:27 +0300 To: jrkrid...@inbox.com Subject: Re

Re: [R] Narrowing values collected from .txt file

2013-08-21 Thread John Kane
John Kane Kingston ON Canada -Original Message- From: emor...@usgs.gov Sent: Wed, 21 Aug 2013 06:50:07 -0700 To: r-help@r-project.org Subject: [R] Narrowing values collected from .txt file useRs- The output generated from a groundwater model post-processor contains millions

Re: [R] rcode problem

2013-08-21 Thread John Kane
Your data arrived but no code. The R help list is fussy about what type of files you can attache. For an alternative approach have a look at http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada -Original Message- From

Re: [R] Change number of rows in console

2013-08-20 Thread John Kane
Really a question for RStudio support and I don't know if this is still true http://support.rstudio.org/help/discussions/questions/724-console-line-limit but I'd also suggest just using sink() and viewing the results in a text editor or word processor. John Kane Kingston ON Canada

Re: [R] odfWeave post processing error

2013-08-07 Thread John Kane
I think we would need to see the odt file. You might want to upload it to some place like www.mediafire.com or www.dropbox.com so that R-help readers can take a look at it. John Kane Kingston ON Canada -Original Message- From: cougar...@hotmail.com Sent: Tue, 6 Aug 2013 14:20

Re: [R] Retreiving correct data from combining two datasets

2013-08-05 Thread John Kane
a bit more information. See https://github.com/hadley/devtools/wiki/Reproducibility and/or http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example for some suggestions on crafting a question for the list. John Kane Kingston ON Canada -Original Message

Re: [R] Retreiving correct data from combining two datasets

2013-08-05 Thread John Kane
In Line John Kane Kingston ON Canada -Original Message- From: i...@software-solutions.nl Sent: Mon, 5 Aug 2013 06:57:30 -0700 (PDT) To: r-help@r-project.org Subject: [R] Retreiving correct data from combining two datasets Hi all, I have two datasets: Dataset 1 - List

Re: [R] can't read a file

2013-08-05 Thread John Kane
No you don't need another format. read.table is the same on any operating system. What is your actual command and what error messages if any? It may be a path problem. John Kane Kingston ON Canada -Original Message- From: clemence.germa...@gmail.com Sent: Mon, 5 Aug 2013 17:31:11

Re: [R] Internalization of help pages

2013-08-04 Thread John Kane
I tried it in French and there a few hiccups but it's not too bad. Personally I'd like to see the help tranlated into English too.l John Kane Kingston ON Canada -Original Message- From: j...@bitwrit.com.au Sent: Sun, 04 Aug 2013 10:28:42 +1000 To: tomas.gr...@collectionspro.eu

Re: [R] Junk mail

2013-08-03 Thread John Kane
https://stat.ethz.ch/mailman/listinfo/r-help Scroll down John Kane Kingston ON Canada -Original Message- From: judahscep...@gmail.com Sent: Sat, 3 Aug 2013 15:32:22 +0100 To: r-h...@stat.math.ethz.ch Subject: [R] Junk mail Please remove my my email from the mailing list

Re: [R] Forest plot with sub group analyses

2013-08-02 Thread John Kane
No attachments came through. Either include the code and the data in the email---see ?dupt for a way to include the data or include the files as .txt files. John Kane Kingston ON Canada -Original Message- From: wngich...@gmail.com Sent: Fri, 2 Aug 2013 10:45:33 +0200 To: r-help@r

Re: [R] ggplot2: color histograms by quintile

2013-08-01 Thread John Kane
There is a problem with your example data set. Series has only one value so there is no faceting. Also you refer to trim.index$Rate . Where is it coming from or is trim.index just another name for thing John Kane Kingston ON Canada -Original Message- From: david_txert...@yahoo.fr

Re: [R] Highlight selected bar in barplot

2013-07-31 Thread John Kane
-reproducible-example for some suggetions on asking questions and code formatting. John Kane Kingston ON Canada -Original Message- From: debrui...@gmail.com Sent: Wed, 31 Jul 2013 16:57:55 +0200 To: r-help@r-project.org Subject: [R] Highlight selected bar in barplot Hi All, I

Re: [R] Reshape

2013-07-30 Thread John Kane
https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada -Original Message- From: dominic.r...@gmail.com Sent: Tue, 30 Jul 2013 15:41:46 +0200 To: r-help@r-project.org

Re: [R] Time Series with daily frequency

2013-07-30 Thread John Kane
Who knows? You have not told us what you are actually doing. https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada -Original Message- From: lcmail4li...@gmail.com

Re: [R] Dot plot similar to StatKey

2013-07-30 Thread John Kane
geom_dotplot() in the ggplot2 package perhaps? ggplot(mtcars, aes(x = mpg)) + geom_dotplot() John Kane Kingston ON Canada -Original Message- From: dwarnol...@suddenlink.net Sent: Mon, 29 Jul 2013 23:21:26 -0700 (PDT) To: r-help@r-project.org Subject: [R] Dot plot similar to StatKey

Re: [R] cross-correlation with R

2013-07-30 Thread John Kane
We need to know what you actually are doing before we can suggest anything. Have a look at these links : https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada -Original

Re: [R] Extracting Current and Old Date

2013-07-28 Thread John Kane
If I read this correctly: mydates - as.Date(c(2007-06-22, 2007-05-21, 2004-04-13, 2004-03-11,2004-02-13)) xx - min(mydates) yy - max(mydates) yy-xx John Kane Kingston ON Canada -Original Message- From: pmaclean2...@yahoo.com Sent: Sun, 28 Jul 2013 12:20:30 -0700 (PDT) To: r

Re: [R] add different regression lines for groups on ggplot

2013-07-27 Thread John Kane
-PYxC-sUGU8-xOwsig2=iBIrl1uhIsJXmPbAh4kUbwbvm=bv.49784469,d.aWM You may be able to use two smooth statements to do what you want. John Kane Kingston ON Canada -Original Message- From: ye...@lbl.gov Sent: Fri, 26 Jul 2013 12:21:23 -0700 To: r-help@r-project.org Subject: [R] add

Re: [R] help on carrying forward several vectors of rownames

2013-07-26 Thread John Kane
' has a special meaning in R and I don't think that is what you mean. if it is, my appologies. Perhaps have a look at https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada

Re: [R] Function, that assigns two vectors to each other

2013-07-24 Thread John Kane
and paste the results into the mail. John Kane Kingston ON Canada -Original Message- From: gallr...@psychologie.tu-dresden.de Sent: Wed, 24 Jul 2013 12:25:35 +0200 To: r-help@r-project.org Subject: [R] Function, that assigns two vectors to each other Hey guys, In my data setv

Re: [R] Paternity data analysis problem

2013-07-24 Thread John Kane
Please use dput() to supply data and send in text format not html. Thanks John Kane Kingston ON Canada -Original Message- From: mrahmankuf...@gmail.com Sent: Wed, 24 Jul 2013 19:00:42 +0800 To: r-help@r-project.org, r-help-requ...@r-project.org, r-help-ow...@r-project.org Subject

Re: [R] Network analysis

2013-07-24 Thread John Kane
but there is a link to the author's code. And it's a fun read. http://kieranhealy.org/blog/archives/2013/06/09/using-metadata-to-find-paul-revere/ John Kane Kingston ON Canada -Original Message- From: sundas.java...@imperial.ac.uk Sent: Wed, 24 Jul 2013 10:18:03 + To: r-help@r

Re: [R] HELP R

2013-07-22 Thread John Kane
-a-great-r-reproducible-example John Kane Kingston ON Canada -Original Message- From: teresama...@hotmail.com Sent: Mon, 22 Jul 2013 09:11:32 + To: r-help@r-project.org Subject: Re: [R] HELP R Hi, I did what you have told me but I can not do it well, NUMERO

Re: [R] Different x-axis scales using c() in latticeExtra

2013-07-20 Thread John Kane
No idea what I happening but does this give what you expect library(gridExtra) preds - grid.arrange(pred1_plot,pred2_plot, pred3_plot, ncol=3) preds John Kane Kingston ON Canada -Original Message- From: stev0...@gmail.com Sent: Fri, 19 Jul 2013 22:18:47 -0500 To: r-help@r

Re: [R] How to search for a sequence(and its combination) inside a vector?

2013-07-20 Thread John Kane
Taking Berend's example a bit further, this seems to work If you use str(b) you will see it is a list b - rle(a) cc - data.frame(b[[1]], b[[2]]) names(cc) - c(leng, 'val') dd - subset(cc, val ==TRUE ) table(dd) John Kane Kingston ON Canada -Original Message- From: tmrs

Re: [R] How to search for a sequence(and its combination) inside a vector?

2013-07-20 Thread John Kane
TRUE 213 TRUE 233 TRUE 251 TRUE 273 TRUE 291 TRUE John Kane Kingston ON Canada -Original Message- From: tmrs...@gmail.com Sent: Sat, 20 Jul 2013 13:11:47 -0400 To: jrkrid...@inbox.com Subject: Re: [R] How to search for a sequence(and its combination) inside

Re: [R] How to search for a sequence(and its combination) inside a vector?

2013-07-20 Thread John Kane
My best guess it that you have something like 1 123123 in there somewhere try: which(cc[,1] == 6) and have a look at line 137 Essentially your data does not look exactly like what you think it does. John Kane Kingston ON Canada -Original Message- From: tmrs...@gmail.com Sent

Re: [R] Help on np package - how to set the data into a panel format

2013-07-13 Thread John Kane
We really need to see the data, I think. You can use the function dput(), see ?dput dput(filename) will give you a formatted output that you can just copy and paste into an e-mail. An R-help reader can just copy and paste that into R and have an exact copy of your data set. John Kane

Re: [R] Sparse matrix no longer sparse (Matrix Package)

2013-07-11 Thread John Kane
and then copy and paste the results into your email. So for file dat1 one would just use dput(dat1) and paste the results into an email. John Kane Kingston ON Canada -Original Message- From: hdo...@air.org Sent: Thu, 11 Jul 2013 09:53:40 + To: r-help@r-project.org Subject: [R] Sparse

Re: [R] PCA and gglot2

2013-07-11 Thread John Kane
Not sure why the problem. I think I'd need see your actual data and give it a try. If you want to supply your data or a sample of it see ?dput for a convenient way to do so. I see thought that you've found a dedicated ggplot biplot so if may not be worth your while. John Kane Kingston

Re: [R] Sparse matrix no longer sparse (Matrix Package)

2013-07-11 Thread John Kane
[mailto:r-help-boun...@r-project.org] On Behalf Of Doran, Harold Sent: Thursday, July 11, 2013 11:36 AM To: 'John Kane'; r-help@r-project.org Cc: dmba...@gmail.com; maech...@stat.math.ethz.ch Subject: Re: [R] Sparse matrix no longer sparse (Matrix Package) Thank you, John. I originally used dput

Re: [R] PCA and gglot2

2013-07-10 Thread John Kane
It looks like you can if I understand properly. Try this dat1 - data.frame(dat1$scores) dat1$items - rownames(data1) ggplot(dat1, aes(Comp.1, Comp.2, colour = items)) + geom_point() + theme(legend.position=none) John Kane Kingston ON Canada -Original Message- From

Re: [R] PCA and gglot2

2013-07-10 Thread John Kane
)) + geom_point() + theme(legend.position=none) A quick look suggests that this is roughly the same plot as in the example Fig 4 but there the author is using geom_segment to add the lines but I have not looked at it all that carefully. John Kane Kingston ON Canada -Original Message

Re: [R] A question on the abline function

2013-07-09 Thread John Kane
https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada -Original Message- From: jia2...@citi.com Sent: Mon, 8 Jul 2013 12:45:03 + To: r-help@r-project.org

Re: [R] save rds as text

2013-07-06 Thread John Kane
You might want to have a look at the xtable package John Kane Kingston ON Canada -Original Message- From: ac...@le.ac.uk Sent: Fri, 5 Jul 2013 03:44:02 -0700 (PDT) To: r-help@r-project.org Subject: [R] save rds as text I created a table like this: Analysis of Variance Table

Re: [R] Data Package Query

2013-07-06 Thread John Kane
John Kane Kingston ON Canada -Original Message- From: y_re...@hotmail.com Sent: Fri, 5 Jul 2013 13:35:32 + To: jrkrid...@inbox.com, rolf.tur...@xtra.co.nz, jdnew...@dcn.davis.ca.us Subject: RE: [R] Data Package Query Hello, When I run the below syntax: Trial-read.table(Trial.txt

Re: [R] ggplot2

2013-07-04 Thread John Kane
I think we need to see some of the original data. See ?dput for how to supply data in a email. We probably don't need all the data, I'd suggest perhaps 100 rows or so. Try dput(head(yourdata, 100)) BTW what is last? John Kane Kingston ON Canada -Original Message- From

Re: [R] ggplot2

2013-07-04 Thread John Kane
://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada -Original Message- From: alexandre.pi...@mail.mcgill.ca Sent: Thu, 4 Jul 2013 07:40:31 -0700 (PDT) To: r-help@r-project.org

Re: [R] Data Package Query

2013-06-29 Thread John Kane
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 hello, please advice what

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

2013-06-29 Thread John Kane
is a 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 data.frame? Hello everyone, i found

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

2013-06-28 Thread John Kane
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 +0800 To: r-help@r

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] 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 still leaves a string of identical numbers

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 but Z does. How do I add a very small

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 Dear R-Users, I hope this is the right e

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] Fwd: Questions about working

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 Message- From

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? Thanks, Chet Seligman

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:03 -0400 (EDT

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: ruipbarra...@sapo.pt Subject: Re

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

2013-06-12 Thread John Kane
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 equivalent is ggpairs(dat1, upper=list(continuous

[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 Subject: Re: [R] R-help Digest, Vol 124

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

2013-06-11 Thread John Kane
but the 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 Hi Keith

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

2013-06-11 Thread John Kane
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, Thanks for that. Unfortunately it doesn't

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 2013 09:18:25

<    1   2   3   4   5   6   7   8   9   10   >