Re: [R] boxplots of various levels

2012-10-31 Thread John Kane
eplace = TRUE) , dtime = rep(1:10, each=10)) p <- ggplot(mydata , aes( group, result, fill = side ))+ geom_boxplot() + facet_wrap(~dtime) p John Kane Kingston ON Canada > -Original Message- > From: dysonspher...@gmail.com > Sent: Tue, 30 O

Re: [R] box() doesnt work

2012-10-31 Thread John Kane
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada > -Original Message- > From: cat...@bas.ac.uk > Sent: Tue, 30 Oct 2012 10:27:29 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] box() doesnt work >

Re: [R] FW: Reading output of a GLMM run in R

2014-04-13 Thread John Kane
Can you resend the information in plain text? It looks like you sent it in html format and it is very close to completely unreadable. John Kane Kingston ON Canada > -Original Message- > From: rut...@hotmail.co.uk > Sent: Sun, 13 Apr 2014 00:28:43 + > To: r-help@r

Re: [R] R License

2014-05-24 Thread John Kane
It is an Open Source program and can be used by anyone. John Kane Kingston ON Canada > -Original Message- > From: juan.bohorq...@ecopetrol.com.co > Sent: Sat, 24 May 2014 07:57:58 -0500 > To: r-help@r-project.org > Subject: [R] R License > > Hello, I work in the ar

Re: [R] How to illustrate data of a csv file as table (xtable?)

2014-05-24 Thread John Kane
Verena Do you mean word-sheet or is this a typo for 'work-sheet'? John Kane Kingston ON Canada > -Original Message- > From: vwein...@gmail.com > Sent: Sat, 24 May 2014 00:31:44 +0200 > To: r-help@r-project.org > Subject: [R] How to illustrate data of a

Re: [R] how to add a table under a plot?

2014-05-24 Thread John Kane
I'd go with the addtable2plot but you can also do bascially the same thing in ggplot2 (again you have to install the ggplot2 package. Here is an example of the ggplot2 approach http://stackoverflow.com/questions/12318120/adding-table-within-the-plotting-region-of-a-ggplot-in-r John

Re: [R] R License

2014-05-24 Thread John Kane
Aha, someone knowledeable has shown up. Thanks Tim John Kane Kingston ON Canada > -Original Message- > From: t...@mlhim.org > Sent: Sat, 24 May 2014 12:23:10 -0300 > To: juan.bohorq...@ecopetrol.com.co > Subject: Re: [R] R License > > On Sat, May 24, 2014 at

Re: [R] Time Series

2014-05-24 Thread John Kane
No raw data. Sent is as text (csv) or use dput() to include it in the email. John Kane Kingston ON Canada > -Original Message- > From: schmtz...@yahoo.com > Sent: Fri, 23 May 2014 08:02:31 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Time Series > > Dear

Re: [R] Balloon plot scaling problem

2014-05-25 Thread John Kane
$median+0.65)^5 balloon=ggplot(krdata2,aes(x=X,y=variable))+ geom_point(aes(size=median),shape=21,color="black",fill="lightblue")+ scale_size_area(max_size=40,limits=c(0.6, 2.3),guide="legend", breaks=waiver(), expand=waiver()) print(balloon) ##

Re: [R] How to unstack three columns into rows?

2014-05-28 Thread John Kane
Hi Petr I think cast() has been dropped from the most recent reshape2 and you need dcast(data, siteS~species) instead John Kane Kingston ON Canada > -Original Message- > From: petr.pi...@precheza.cz > Sent: Tue, 27 May 2014 11:46:13 + > To: kristi.glo...@hotmail.c

Re: [R] Time Series

2014-06-03 Thread John Kane
(NA, 2.5, 0, 2.5, 0, 0, -10, 15, -2.7, 0, 0, -5, 5, -2.5, 0, 0, 0, 0, 0, 7.5, -2.5, -5, -10, 15, -7.5, 2.5, -2.5, 2.5, 2.5, -2.5, 0, 2.5, 0, 2.5, -2.5, 0, 2.5, 0, 0, 0, -2.5, 0, 2.5, -2.5, 2.5, 0, -7.5, 2.5, 0, 0, 0)), .Names = c("Date", "Inr", "Wdose", "Deld

Re: [R] Recurrent analysis survival analysis data format question

2014-06-11 Thread John Kane
other sequential sentence. We have a current case here where three people, already incarcerated, are just been charged with attempted murder. John Kane Kingston ON Canada > -Original Message- > From: chri...@med.umich.edu > Sent: Tue, 10 Jun 2014 19:02:30 +

Re: [R] Average value in a particular range of a matrix

2014-06-12 Thread John Kane
?mean You need to read tutorial or two, particularly with reference to indexing. The CRAN site has any number of useful papers and books that you can download. John Kane Kingston ON Canada > -Original Message- > From: leonardsqual...@hotmail.com > Sent: Wed, 11 Jun 2014 12:17

Re: [R] zuzufarah Help with ggplot 2 error: Aesthetics must either be length one, or the same length as the dataProblems

2014-06-21 Thread John Kane
Please have a look at 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: zaydfa...@gmail.com > Sent: Fri, 20 Jun 2

Re: [R] Help with tables in R

2014-07-03 Thread John Kane
LaTeX. Odfweave seems to produce good tables in OpenOffice/LibreOffice. John Kane Kingston ON Canada > -Original Message- > From: barrylamb...@gmail.com > Sent: Wed, 2 Jul 2014 21:33:12 -0500 > To: r-help@r-project.org > Subject: [R] Help with tables in R > > I

Re: [R] Subsetting year range

2012-11-01 Thread John Kane
TableAPS1 <- subset(TableAP, year >= 1959) ?? John Kane Kingston ON Canada > -Original Message- > From: iamsta...@gmail.com > Sent: Wed, 31 Oct 2012 20:19:46 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Subsetting year range > > Hi, > >

Re: [R] boxplots of various levels

2012-11-01 Thread John Kane
Ah nice. I clearly misunderstood and thought that facet_wrap() made sense. John Kane Kingston ON Canada > -Original Message- > From: ruipbarra...@sapo.pt > Sent: Wed, 31 Oct 2012 19:45:33 + > To: dysonspher...@gmail.com > Subject: Re: [R] boxplots of various le

Re: [R] Loop over several Variables, add on question

2012-11-02 Thread John Kane
In Line John Kane Kingston ON Canada > -Original Message- > From: bochrist...@web.de > Sent: Fri, 2 Nov 2012 05:34:48 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] Loop over several Variables, add on question > > Hey Petr, > > thanks for answer

Re: [R] Dataframe,Matrix,Table

2012-11-08 Thread John Kane
I don't understand what you mean by a header line but does this do the other two for you? mydata <- data.frame( 1:5, 21: 25) mydata names(mydata) <- c("alph", "louie") rownames (mydata) <- letters[1:5] mydata John Kane Kingston ON Canada > -Origi

Re: [R] Executing SAS Codes in R

2012-11-08 Thread John Kane
Perhaps http://www.statmethods.net/ or google for "R for SAS and SPSS users" John Kane Kingston ON Canada > -Original Message- > From: pmaclean2...@yahoo.com > Sent: Thu, 8 Nov 2012 07:09:39 -0800 (PST) > To: r-help@r-project.org > Subject: Re: [R] Executin

Re: [R] lm function - strange error

2012-11-09 Thread John Kane
) signal = c (4, 22, 44, 60, 82, NA) lm( signal ~ conc) as does this conc = c(0, 10, 20, 30, 40, 50) signal = c (NA, 4, 22, 44, 60, 82) lm( signal ~ conc) but they give very different results. I don't think R has changed someone just make typing mistake. John Kane Kingston ON C

Re: [R] lm function - strange error

2012-11-09 Thread John Kane
lm.r) I hope this helps. John Kane Kingston ON Canada > -Original Message- > From: tesara...@gmail.com > Sent: Fri, 9 Nov 2012 09:36:23 -0800 (PST) > To: r-help@r-project.org > Subject: Re: [R] lm function - strange error > > Here is the document > > http://

Re: [R] lm function - strange error

2012-11-09 Thread John Kane
; Pehaps the R-Core developers could consider such an editor? I am sure that I would sacrifce a sheep or two John Kane Kingston ON Canada >> -- >> View this message in context: >> http://r.789695.n4.nabble.com/lm-function-strange-error-tp4649065p4649074.html >>

Re: [R] mean and kurtosis

2012-11-09 Thread John Kane
http://www.statmethods.net/stats/descriptives.html the psych package seems to do what you wan set.seed(235) mydata <- data.frame(aa = rnorm(20), bb = rnorm(20) , cc = rnorm(20)) library(psych) describe(mydata) John Kane Kingston ON Canada > -Original Message- > From

Re: [R] lm function - strange error

2012-11-09 Thread John Kane
> -Original Message- > From: sarah.gos...@gmail.com > Sent: Fri, 9 Nov 2012 14:34:57 -0500 > To: jrkrid...@inbox.com > Subject: Re: [R] lm function - strange error > > On Fri, Nov 9, 2012 at 2:20 PM, John Kane wrote: >> >>> -Original Message--

Re: [R] lm function - strange error

2012-11-09 Thread John Kane
onc) summary(lm.r) conc = c(0,10, 20, 30, 40, 50) signal = c (4, 22, 44, 60, 82, NA) lm.r <- lm( signal ~ conc) summary(lm.r) John Kane Kingston ON Canada -Original Message- From: askib...@gmail.com Sent: Fri, 9 Nov 2012 20:35:05 +0100 To: jrkrid...@inb

Re: [R] plot matrix

2012-11-13 Thread John Kane
1, id=c("year")) p <- ggplot(dat2, aes(year, value, colour = variable )) + geom_line() p John Kane Kingston ON Canada > -Original Message- > From: catalinro...@gmail.com > Sent: Sun, 11 Nov 2012 13:41:15 +0200 > To: r-help@r-project.org > Subject: [R]

Re: [R] order in stacked barplot

2012-11-13 Thread John Kane
sets, you can just supply a representative sample. Usually, dput(head(testfile, 100)) will be sufficient. John Kane Kingston ON Canada > -Original Message- > From: kay.lue...@uni-rostock.de > Sent: Mon, 12 Nov 2012 09:01:40 -0800 (PST) > To: r-help@r-project.org &

Re: [R] Macro Variable in R

2012-11-14 Thread John Kane
Not a specific answer to your question but have you seen www.et.bs.ehu.es/~etptupaf/pub/R/RforSAS&SPSSusers.pdf. If you are just starting to use R it is a very handy reference on the differences and similarities among the packages. John Kane Kingston ON Canada > -Original

Re: [R] Deleting rows with special character

2012-11-16 Thread John Kane
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada > -Original Message- > From: peter.kup...@me.com > Sent: Fri, 16 Nov 2012 15:04:31 +0100 > To: r-help@r-project.org > Subject: [R] Deleting rows with sp

Re: [R] Deleting rows with special character

2012-11-16 Thread John Kane
thanks John Kane Kingston ON Canada > -Original Message- > From: peter.kup...@me.com > Sent: Fri, 16 Nov 2012 15:32:23 +0100 > To: sarah.gos...@gmail.com > Subject: Re: [R] Deleting rows with special character > > Hey Sara, > first: Thanks for the fast re

Re: [R] Calculateing means

2012-11-16 Thread John Kane
?aggregate will do it. x <- data.frame( height= c(50, 174, 145, 200, 210, 140, 175), age_group=c(1,2,2,1,1,2,1), ville= c(1,2,3,1,2,3,1)) aggregate(x$height,list(x$age_group, x$ville), mean) or have a look at the plyr or datatable packages. John Kane Kingston ON Can

Re: [R] histogram help

2012-11-21 Thread John Kane
i think we need some sample data. I would not have thought that you could calculate the percentage of a categorical data so perhaps a simple example of what you are doing would help. John Kane Kingston ON Canada > -Original Message- > From: rosario.scandu...@gmail.com >

Re: [R] Spider Graph

2012-11-21 Thread John Kane
is this link of any use? http://www.inside-r.org/packages/cran/fmsb/docs/radarchart John Kane Kingston ON Canada > -Original Message- > From: baronov...@bam.org > Sent: Wed, 21 Nov 2012 12:09:38 -0500 > To: r-help@r-project.org > Subject: Re: [R] Spider Graph > >

Re: [R] How to import data from a text file in R

2012-11-25 Thread John Kane
Save the file as a csv file and try something like this: mydata <- read.csv(".csv", header = FALSE) John Kane Kingston ON Canada > -Original Message- > From: claudio.dilor...@carloalberto.org > Sent: Sun, 25 Nov 2012 03:29:42 -0800 (PST) > To: r-hel

Re: [R] RExcel, ROOo and LibreOffice inquiry

2012-11-25 Thread John Kane
Can you supply a link for ROOo ? I don't see it anywhere. Also what do you mean" OpenOffice is deprecated"? Do you mean in terms of using it with ROOo? Otherwide OOo, now under new management at Apache is under active development under the name Apache Open Office. John K

Re: [R] RExcel, ROOo and LibreOffice inquiry

2012-11-26 Thread John Kane
John Kane Kingston ON Canada > -Original Message- > From: landronim...@gmail.com > Sent: Sun, 25 Nov 2012 15:02:16 +0100 > To: jrkrid...@inbox.com > Subject: Re: [R] RExcel, ROOo and LibreOffice inquiry > > On Sun, Nov 25, 2012 at 2:38 PM, John Kane wrote: >

Re: [R] error of runing R in R 2.15.2 w/o graphes generated

2012-11-27 Thread John Kane
It works for me. See http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example for some suggestions on how to report the problem in more detail. Your sessionInfo() is probably an absolute necessity here. Good luck John Kane Kingston ON Canada > -Origi

Re: [R] R strange behaviour when building huge concatenation

2012-11-27 Thread John Kane
No idea. It seems fine to me. Perhaps a bit more information would be useful expecially your sessionInfo() See http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example for some suggestions on forming questions. John Kane Kingston ON Canada > -Origi

Re: [R] R strange behaviour when building huge concatenation

2012-11-27 Thread John Kane
import it using read.table or read.csv. I'm sorry that I cannot be of more help. Perhaps one of the R gurus can comment on the possible buffer problem. John Kane Kingston ON Canada > -Original Message- > From: angelo...@gmail.com > Sent: Tue, 27 Nov 2012 07:04:13 -0800 (P

Re: [R] Finding values in one column and

2012-11-27 Thread John Kane
Have a look at ?merge John Kane Kingston ON Canada > -Original Message- > From: steven.ran...@gmail.com > Sent: Tue, 27 Nov 2012 15:17:58 -0700 > To: r-help@r-project.org > Subject: [R] Finding values in one column and > > All - > > I have a data frame

Re: [R] Finding values in one column and

2012-11-27 Thread John Kane
Come to think of it the plyr package and the data.table packages also offer similar tools. For large merges (joins) I think the data.table package is much faster. John Kane Kingston ON Canada > -Original Message- > From: steven.ran...@gmail.com > Sent: Tue, 27 Nov 2012 15:28

Re: [R] output data by date?

2012-11-28 Thread John Kane
in the list can be found at http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada > -Original Message- > From: kath.re...@gmail.com > Sent: Wed, 28 Nov 2012 13:13:32 +0100 > To: r-help@r-project.org > Subject:

Re: [R] R strange behaviour when building huge concatenation

2012-11-28 Thread John Kane
it might be worth asking it on their website and see if they have any suggestions about limits or if it is a peculiarity of your setup. Here's my sessionInfo for comparison. > > Thank you to all you > Cheers, > Angelo > > > 2012/11/27 John Kane [via R] > >>

Re: [R] Order function

2012-11-28 Thread John Kane
case I'd just create a vector of appropriate length and cbind it to the data frame or whatever. John Kane Kingston ON Canada > -Original Message- > From: linda_...@hotmail.co.uk > Sent: Tue, 27 Nov 2012 12:47:15 -0800 (PST) > To: r-help@r-project.org > Subject: [R] O

Re: [R] error, R commends cannot show the expected output

2012-11-29 Thread John Kane
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada > -Original Message- > From: dtustud...@hotmail.com > Sent: Wed, 28 Nov 2012 18:38:46 -0700 > To: michael.weyla...@gmail.com > Subject: Re: [R] error, R

Re: [R] Order function

2012-11-29 Thread John Kane
ave a specific question. http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada > -Original Message- > From: linda_...@hotmail.co.uk > Sent: Wed, 28 Nov 2012 08:49:42 -0800 (PST) > To: r-help@r-project.org > Su

Re: [R] Nightingale’s Rose chart-any suggestion?

2012-11-30 Thread John Kane
I think this does it. require(reshape2) df1 <- melt(DF, id="month") ggplot(df1, aes(x = month, y = value, fill = variable)) + theme_bw() + geom_bar(stat = "identity") + coord_polar() John Kane Kingston ON Canada > -Original Messag

Re: [R] Getting all possible contingency tables

2012-12-01 Thread John Kane
Are you basically asking for all possible permutations of the table? If so see ?permn in the combinat package. John Kane Kingston ON Canada > -Original Message- > From: bogaso.christo...@gmail.com > Sent: Sat, 01 Dec 2012 18:10:15 +0545 > To: r-help@r-project.org &

Re: [R] How to built a pivot table of value

2012-12-01 Thread John Kane
One way, using the plyr package would be: library(plyr) dcast(base, p ~ q) John Kane Kingston ON Canada > -Original Message- > From: ce.kay...@yahoo.fr > Sent: Sat, 1 Dec 2012 04:37:02 -0800 (PST) > To: r-help@r-project.org > Subject: [R] How to built a pivot

Re: [R] Getting all possible contingency tables

2012-12-01 Thread John Kane
R can usually do almost anything but if the function exists I am not aware of it. Sorry. I did misunderstand what you were doing. John Kane Kingston ON Canada > -Original Message- > From: bogaso.christo...@gmail.com > Sent: Sat, 01 Dec 2012 19:33:09 +0545 > To: jrkrid.

Re: [R] How to built a pivot table of value

2012-12-01 Thread John Kane
Blast, you're right. I tend to load both at the same time and confused the two. It should be reshape2 John Kane Kingston ON Canada > -Original Message- > From: b...@xs4all.nl > Sent: Sat, 1 Dec 2012 15:20:13 +0100 > To: jrkrid...@inbox.com > Subject: Re: [R] How to

Re: [R] xlsx file read in R

2012-12-03 Thread John Kane
http://cran.r-project.org/doc/manuals/R-data.html John Kane Kingston ON Canada > -Original Message- > From: nicome...@gmail.com > Sent: Mon, 3 Dec 2012 13:59:18 +0100 > To: r-help@r-project.org > Subject: [R] xlsx file read in R > > Dear all, > > How

Re: [R] More efficient use of reshape?

2012-12-14 Thread John Kane
-5 gridExtra_0.9.1 stringr_0.6.2 [6] scales_0.2.3 plyr_1.8 reshape2_1.2.1 ggplot2_0.9.3 loaded via a namespace (and not attached): [1] colorspace_1.2-0 dichromat_1.2-4 digest_0.6.0 gtable_0.1.2 labeling_0.1 [6] MASS_7.3-22 munsell_0.4 proto_0.3-

Re: [R] looping through spatial points and getting counts of spatial points in spatial grid in R

2012-12-17 Thread John Kane
ive sample. Usually, dput(head(testfile, 100)) will be sufficient. John Kane Kingston ON Canada > -Original Message- > From: waggyma...@yahoo.com > Sent: Sun, 16 Dec 2012 23:07:54 -0800 (PST) > To: r-help@r-project.org > Subject: [R] looping through spatial points and

[R] OdfWeave problem

2013-12-17 Thread John Kane
53U" machine login "i686" "unknown" user effective_us

Re: [R] OdfWeave problem

2013-12-17 Thread John Kane
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 -05

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 Messag

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

Re: [R] ftable and data.frame

2013-12-20 Thread John Kane
The structure of the data is more important than the values. Please use dput() (see ?dput for information) to supply the data. Just do : dput(mydata) and then paste the result into the email. John Kane Kingston ON Canada > -Original Message- > From: silv...@uel.br > Sent: Fri,

Re: [R] by class...

2013-12-21 Thread John Kane
Nominate for a fortune. John Kane Kingston ON Canada > -Original Message- > From: jdnew...@dcn.davis.ca.us You seem to be falling prey to a common misconception that "R" is some monolithic tool, when in fact it i

Re: [R] How do I separate elements of a vector by comma?

2013-12-22 Thread John Kane
paste(xx,",", sep = "") but this coerces the vector to a character vector. John Kane Kingston ON Canada > -Original Message- > From: elham_h...@yahoo.com > Sent: Sun, 22 Dec 2013 07:40:21 -0800 (PST) > To: r-help@r-project.org > Subject: [R] How do

Re: [R] Knitr, ggplot and consistent fonts

2013-12-22 Thread John Kane
I still cannot get it to work. It is almost as if there is some hidden character in the in that piece of code since I can duplicate the code myself and I even pasted in most of the geom_histogram code into my code chunk and it runs. John Kane Kingston ON Canada > -Original

Re: [R] Season's Greetings (and great news ... )!

2013-12-22 Thread John Kane
"(or whatever the keyboard analogue of that may be) " Hands clasped? Fingers interlaced? John Kane Kingston ON Canada > -Original Message- > From: ted.hard...@wlandres.net > Sent: Sun, 22 Dec 2013 18:37:18 - (GMT) > To: r-help@r-project.org > Subject: R

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread John Kane
. It also provides this warning: : Latex Warning; Reference 'fig:plot-figheight' undefined on page 2 on input line 14. It seems to repeat the same message for each of the other figures. John Kane Kingston ON Canada > -Original Message- > From: dulca...@bigpond.com > Sen

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread John Kane
Does not seem to be.  I 'think' I removed all the line breaks  and it still is not compiling. Thanks for the suggestion. I had not bothered to paste the <<>>= text into RStudio and since TexMaker has an automatic wrap, I would never have noticed it. John K

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread John Kane
h = 1, colour = "black", fill = "white")") Results Error: unexpected symbol in: "showNonASCII("ggplot(df, aes(x = x)) + geom_histogram(aes(y = ..density..)), binwidth = 1, colour = "black" John Kane Kingston ON Canada > -Original Message

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread John Kane
est idea of what the example from the help page is doing. John Kane Kingston ON Canada > -Original Message- > From: murdoch.dun...@gmail.com > Sent: Mon, 23 Dec 2013 12:51:43 -0500 > To: jrkrid...@inbox.com, r...@temple.edu > Subject: Re: [R] Knitr, ggplot and consistent f

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread John Kane
Thanks, I was not getting anything when I printed the x and so thought I was doing something wrong. Instead I just didn't seem to have a non-ASCII character. John Kane Kingston ON Canada > -Original Message- > From: murdoch.dun...@gmail.com > Sent: Mon, 23 Dec 2013

Re: [R] barchar or barp on multiple data

2014-01-14 Thread John Kane
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example No data. The list strips off most files. If you want to send data give the file a .txt suffix but it is much better to supply the output of dput() . John Kane Kingston ON Canada > -Original Mess

Re: [R] Barplot not showing all labels

2014-01-14 Thread John Kane
U", "SA", "SE", "SG", "TC", "TH", "TT", "TW", "TZ", "US", "ZA"), class = "factor"), val = c(0, 3, 0, 2, 1, 31, 4, 1, 1, 1, 45, 1, 1, 4, 5, 86, 3, 1, 8, 1, 2, 1, 8, 2, 1, 2, 4, 2, 4, 35,

Re: [R] Barplot not showing all labels

2014-01-15 Thread John Kane
tat = "identity", colour = "blue", fill = 'red', position = "dodge") +   coord_flip() It''s not very pretty but it may give you a start. BTW I see that some countries (GB, CA, Au amongst others) have multiple entries. Does this make sense or shou

Re: [R] help

2014-01-15 Thread John Kane
No data. R-help strips most attacments though txt and pdf will usually get through. 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 Mess

Re: [R] how to replace values

2014-01-21 Thread John Kane
I'm pretty sure that what you have is not what you think you have. Do a str(Elder1) on the data set and you will see that age is a factor not a numerical variable. Bascally you have a mangled data set from the look of it. Why would you want to change NA's to 0's? John Kane Kin

Re: [R] Exporting aggregate summary

2014-01-28 Thread John Kane
Personally I just create a csv file using write.csv() and then read the text file into the spreadsheet if needed. To be fancier have a look at the xlsx package. BTW there is no 'state' variable in your data.frame. John Kane Kingston ON Canada > -Original Message- > Fr

Re: [R] aggregate()?

2014-02-02 Thread John Kane
Not exactly the order you specified but otherwise I think this works. library(plyr) d <- data.frame(Stock, Soil, Nitrogen, Respiration) ddply(d, .(Soil, Stock), summarize, mean(Nitrogen), mean(Respiration)) John Kane Kingston ON Canada > -Original Message- > From:

Re: [R] (no subject)

2014-02-02 Thread John Kane
Not enough information. Have a look at these links for some suggestions on how to ask a question on R-help. John Kane Kingston ON Canada > -Original Message- > From: azadbiost...@gmail.com > Sent: Sat, 1 Feb 2014 18:37:00 -0800 > To: r-help@r-project.org > Subject:

Re: [R] expected value with R

2014-02-06 Thread John Kane
https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example We need some explanation of what " the expected value" is. A mean perhaps? John Kane Kingston ON Canada > -Original Messag

Re: [R] (no subject)

2014-02-11 Thread John Kane
I don't quite understand what you are looking for. I originally thought that a simple subset would do it but I don't understand the selection criteria are for the output data file.s Original idea: want <- subset(dat1, dat1$var =="y") John Kane Kingston ON Canada

Re: [R] Split dataframe by year

2014-02-11 Thread John Kane
first <- subset(dat1, dat1$var <=1960) Reverse inequality for the other one. Hints on how to ask questions on R-help https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON

Re: [R] (no subject)

2014-02-11 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: ma_rw...@yahoo.com > Sent: Sat, 8 Feb 2014 06:40:18 -0800 (PST) >

Re: [R] Plots with Y axis split into two scales

2014-02-27 Thread John Kane
Here, here. John Kane Kingston ON Canada > -Original Message- > From: 538...@gmail.com > Sent: Wed, 26 Feb 2014 10:07:12 -0700 > To: j...@mail.bitwrit.com.au, achim.zeil...@r-project.org > Subject: Re: [R] Plots with Y axis split into two scales > > I nominate

Re: [R] Fwd: R basic data manipulation Queries

2014-03-18 Thread John Kane
In line John Kane Kingston ON Canada > -Original Message- > From: pavnee...@yahoo.co.uk > Sent: Tue, 18 Mar 2014 10:10:38 + > To: r-help@r-project.org > Subject: [R] Fwd: R basic data manipulation Queries > > > > > > > Sent from Samsung M

[R] Syntax for order()

2014-03-25 Thread John Kane
' not found dat1[order(dat1[,2]), ] # Works just fine. John Kane Kingston ON Canada Publish your photos in seconds for FREE TRY IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if4 __

Re: [R] Syntax for order()

2014-03-25 Thread John Kane
I "knew" it was almost certainly something really stupid. Thanks very much. John Kane Kingston ON Canada > -Original Message- > From: sarah.gos...@gmail.com > Sent: Tue, 25 Mar 2014 14:40:50 -0400 > To: jrkrid...@inbox.com > Subject: Re: [R] Syntax for ord

Re: [R] Syntax for order()

2014-03-25 Thread John Kane
Thank. Once I got Sarah's email I realised I should have been usling with(). Hadley's ggplot syntax has spoiled/confused me. John Kane Kingston ON Canada > -Original Message- > From: seeliger.c...@epa.gov > Sent: Tue, 25 Mar 2014 19:02:22 + > To: r-help

Re: [R] Syntax for order()

2014-03-25 Thread John Kane
Okay I feel spoilt all over again. :) John Kane Kingston ON Canada > -Original Message- > From: h.wick...@gmail.com > Sent: Tue, 25 Mar 2014 14:24:00 -0500 > To: jrkrid...@inbox.com > Subject: Re: [R] Syntax for order() > > If you want to continue to be spoil

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]

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) > > Go

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

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

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 Mess

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) writes: > >> On 26

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 to

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

2013-10-01 Thread John Kane
(NA, -9L), class = "data.frame") mdat <- melt(dat1, id.var = "bugs") # reshape data using the rehape2 command melt names(mdat) <- c("Invertibrate", "park", "Count") ggplot(mdat, aes(Invertibrate, Count, fill = park)) + geom_bar(stat=&qu

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: T

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

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 datafr

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

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 1

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