Re: [R] Climate Spatial plot

2013-02-23 Thread John Kane
The server removed any attached files It is better to put everything in the actual email. https://github.com/hadley/devtools/wiki/Reproducibility John Kane Kingston ON Canada > -Original Message- > From: berega...@gmail.com > Sent: Sat, 23 Feb 2013 02:40:29 +0300 >

Re: [R] How to plot 2 continous variables on double y-axis with 2 factors: ggplot2, gplot, lattice, sciplot?

2013-02-28 Thread John Kane
It is not at all clear to me exactly what you want but ggplot2 does not allow double-y graphs. However does this suggest anything useful? http://grokbase.com/t/r/r-help/104yxg1q38/r-plotting-multiple-cis John Kane Kingston ON Canada > -Original Message- > From: a...@ecology

Re: [R] How to plot 2 continous variables on double y-axis with 2 factors: ggplot2, gplot, lattice, sciplot?

2013-03-01 Thread John Kane
="n",ylab="",pch=16) axis(4,at=c(0,20,40,60,80,100)) text(11, 50, "y2", srt = 270, xpd = TRUE) par(op) # reset par # See ?text, ?par and ?mtext for more information. ##=## John Kane Kingston ON Canad

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
t;FY-2", "FY-2", "FY0", "FY2", "FY2"), ROE = c("ROE11", "ROE12", "ROE13", "ROE14", "ROE15", "ROE16", "ROE17", "ROE21", "ROE22", "ROE

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
, FISCALYEAR), summarise,WROE=wavg(ROE, MKTCAP)) Have you left out a equation that calculates MKTCAP? John Kane Kingston ON Canada > -Original Message- > From: anandpu...@gmail.com > Sent: Fri, 1 Mar 2013 13:53:44 -0500 > To: jrkrid...@inbox.com > Subject: Re: [R] Condi

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
Thanks for the data . You have an undefined variable in the ddply statement. There is no MKTCAP in the data.frame. You also have one two many ) in the statement. I think it should read: ddply (dat1 , .(Sector, FISCALYEAR), summarise, WROE=wavg(ROE, MKTCAP)) John Kane Kingston ON Canada

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
See my last post which crossed yours. John Kane Kingston ON Canada > -Original Message- > From: anandpu...@gmail.com > Sent: Fri, 1 Mar 2013 14:33:17 -0500 > To: jrkrid...@inbox.com > Subject: Re: [R] Conditional Weighted Average (ddply or any other > function) >

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
Is there any chance you meant ddply (dat1 , .(Sector, FISCALYEAR), summarise, WROE=wavg(ROE, MKT)) ?? It gives a result but I have no idea if it makes sense. John Kane Kingston ON Canada > -Original Message- > From: anandpu...@gmail.com > Sent: Fri, 1 Mar 2013 14:13:37 -050

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
u may need to break out some data were the combination a)works with some combinations and does not with others and let some experts have a look at it. To my untutored eye you look like you're okay but I am not an expert by any means. Sorry not to be of more help John Kane Kingston ON Canad

Re: [R] Ggplot2: Moving legend, change fill and removal of space between plots when using grid.arrange() possible use of facet_grid?

2013-03-06 Thread John Kane
xlab("factor3") + ggtitle("") + labs(color = "factor1", shape = "factor1", group = "factor1", linetype = "factor1") p1 John Kane Kingston ON Canada > -Original Message- > From: a...@ecology.su.se > Sent:

Re: [R] Ggplot2: Moving legend, change fill and removal of space between plots when using grid.arrange() possible use of facet_grid?

2013-03-06 Thread John Kane
Placing a legend. z <- ggplot(mtcars, aes(wt, mpg, colour = factor(cyl))) + geom_point() z + theme(legend.position = c(.5, .5)) Currently this does not appear to work in RStudio but seems fine if I use gedit or if I run R in a terminal session. John Kane Kingston ON Can

Re: [R] Graph from Glantz

2013-03-06 Thread John Kane
No link and/ no attached file. The list tends to strip most attachments to reduce virus attacks. John Kane Kingston ON Canada > -Original Message- > From: angeloscozzare...@tiscali.it > Sent: Wed, 6 Mar 2013 19:53:18 +0100 > To: r-help@r-project.org > Subject: [R] Gr

Re: [R] Ggplot2: Moving legend, change fill and removal of space between plots when using grid.arrange() possible use of facet_grid?

2013-03-06 Thread John Kane
Replying to my own post RStudio is doing this fine once I had rebooted R. I must have had some strange stuff loaded that I had not realised was there. John Kane Kingston ON Canada > -Original Message- > From: jrkrid...@inbox.com > Sent: Wed, 6 Mar 2013 11:16:28 -080

Re: [R] Ggplot2: Moving legend, change fill and removal of space between plots when using grid.arrange() possible use of facet_grid?

2013-03-07 Thread John Kane
Looking good. I think the function in this post is what you want. It worked on your code for me. http://stackoverflow.com/questions/13297155/add-floating-axis-labels-in-facet-wrap-plot . John Kane Kingston ON Canada > -Original Message- > From: a...@ecology.su.se > Sent

Re: [R] Read Content from URL to XML format

2013-03-07 Thread John Kane
Perhaps http://stackoverflow.com/questions/1395528/scraping-html-tables-into-r-data-frames-using-the-xml-package may be of help John Kane Kingston ON Canada > -Original Message- > From: antony.akk...@ge.com > Sent: Wed, 6 Mar 2013 19:23:24 -0800 (PST) > To: r-help@r

Re: [R] ggpliot2: reordering of factors in facets facet.grid(). Reordering of factor on x-axis no problem.

2013-03-07 Thread John Kane
If I try facet_wrap(~factor1, ncol = 2) I get no faceting at all. Strange. John Kane Kingston ON Canada > -Original Message- > From: istaz...@gmail.com > Sent: Thu, 7 Mar 2013 12:14:01 -0500 > To: a...@ecology.su.se > Subject: Re: [R] ggpliot2: reordering of fa

Re: [R] Copying a dataframe

2013-03-07 Thread John Kane
With the orginal data.frame being df1 df2 <- data.frame(matrix(rep(NA, nrow(df1)*ncol(df1)), nrow = nrow(df1)))df2 <- data.frame(matrix(rep(NA, nrow(df1)*ncol(df1)), nrow = nrow(df1))) John Kane Kingston ON Canada > -Original Message- > From: sahanasrinivasan...@gmai

Re: [R] ggpliot2: reordering of factors in facets facet.grid(). Reordering of factor on x-axis no problem.

2013-03-07 Thread John Kane
ition command to work until I rebooted RStudio and now this. I have no idea of how to track down what's happening but at least you've made me aware of it. Thanks John Kane Kingston ON Canada -Original Message- From: a...@ecology.su.se Sent: Thu, 07 Mar 2013

Re: [R] Read Content from URL to XML format

2013-03-08 Thread John Kane
It works for me. Or at least I got something to download. What is another matter. I am just trying to learn how to do this and really don't have any good advice. Perhaps the site was down or overloaded? Any firewalls to worry about at your end? John Kane Kingston ON Canada > -

Re: [R] create bar chart with different totals in a bar

2013-03-08 Thread John Kane
use dput() to supply sample data. It is not particularly clear what you want to do. You apparently have four entries in the matrix and say that you want to have three bars. How do you want to handle the 11425 value since it has diffference cats? John Kane Kingston ON Canada > -Origi

Re: [R] create bar chart with different totals in a bar

2013-03-08 Thread John Kane
2), cat = c(1, 2, 1, 2)), .Names = c("x", "abnr2", "time", "cat"), row.names = c(NA, -4L), class = "data.frame") dd1 <- data.frame(table( dd$cat, dd$abnr2)) ggplot(dd1, aes(Var2, Freq, fill = Va

Re: [R] ggplot2: modifying line width and background fill color for stat_smooth()

2013-03-08 Thread John Kane
jitter(height = 0.02, width = 0)) + stat_smooth(method = "glm", family = binomial, formula = y ~ poly(x,2), alpha = 0.1, size=2, aes(fill = GENDER)) John Kane Kingston ON Canada > -Original Message- > From: frien...@yorku.ca > Sent: Fri, 08 Mar 20

Re: [R] different color indicates difference magnitude

2013-03-13 Thread John Kane
The R-help list strips most attachements other than text (and perhaps pngs? ) to deduce the risk of virus or malware being recieved. You could try parking the file on something like medifire and providing a link here. John Kane Kingston ON Canada > -Original Message- > From:

Re: [R] How to read a *.csv file in R?

2013-03-13 Thread John Kane
If that is a text file I'd guess that the seperator is a tab. I don's see why you used NULL as R should just read in the file with NA's for empty values. You might want to try : heisenberg <- read.csv(file="comprice.csv",head=TRUE,sep="\t") John Kan

Re: [R] different color indicates difference magnitude

2013-03-13 Thread John Kane
Thanks David. The clarification helps. I had forgotten that pdfs would get through. Howeve the file got to me, I suspect because I am listed in the To line under my actual email address. I suspect that only meng and I recieved it and the rest of the list did not. John Kane Kingston ON

Re: [R] column and line graphs in R

2013-03-14 Thread John Kane
3L, 6L, 11L, 5L, 8L, 13L, 16L, 15L, 2L), freq = c(17L, 14L, 7L, 13L, 19L, 5L, 3L, 20L, 9L, 10L )), .Names = c("abond", "freq"), row.names = c(NA, -10L), class = "data.frame") plot(dat1$abond, col = "red&

Re: [R] column and line graphs in R

2013-03-14 Thread John Kane
0.083 > MOTU33 0.0040.083 > MOTU36 0.0340.333 > MOTU34 0.1820.417 > > First column is the relative abundance of the given MOTU and second > column > is the relative frequency of the same MOTU. > Thank you very much in advance, > > -- > G

Re: [R] date & time manipulation- R 2.15.1 windows 7

2013-03-14 Thread John Kane
A good place to start might be http://www.jstatsoft.org/v40/i03/paper for the lubridate package or have a look at the zoo package John Kane Kingston ON Canada > -Original Message- > From: yash.kaja...@gmail.com > Sent: Thu, 14 Mar 2013 19:15:00 +0530 > To: r-help@r

Re: [R] merge function to combine two tables

2013-03-14 Thread John Kane
Below , in line John Kane Kingston ON Canada > -Original Message- > From: michael.eisenr...@gmx.ch > Sent: Thu, 14 Mar 2013 11:51:49 +0100 > To: r-help@r-project.org > Subject: [R] merge function to combine two tables > > Dear R-help members > > I would

Re: [R] plotting

2013-03-14 Thread John Kane
Also going from memory Michael's ggplot should almost work but I think yo need to change symbol = id in the aes statement to geom_point(aes(shape = id)) although it may work in the first aes() statement. John Kane Kingston ON Canada > -Original Message- > From: mi

Re: [R] plotting

2013-03-14 Thread John Kane
in the first aes statement. library(ggplot2) p <- ggplot(dta , aes(time, value, shape = as.factor(id) , colour =as.factor(group ))) + geom_point() p John Kane Kingston ON Canada > -Original Message- > From: dcarl...@tamu.edu > Sent: Thu, 14 Mar 2

Re: [R] NLS results different from Excel -- Tricky fortunes nomination

2013-03-14 Thread John Kane
No , but please RSVP if you disagree with me. John Kane Kingston ON Canada > -Original Message- > From: cl...@ecy.wa.gov > Sent: Thu, 14 Mar 2013 09:28:46 -0700 (PDT) > To: gunter.ber...@gene.com > Subject: Re: [R] NLS results different from Excel -- Tricky fortun

Re: [R] Data manipulation

2013-03-15 Thread John Kane
Please supply some sample data. John Kane Kingston ON Canada > -Original Message- > From: ii54...@msn.com > Sent: Fri, 15 Mar 2013 12:40:54 + > To: r-help@r-project.org > Subject: [R] Data manipulation > > Hello all, > > > > I would appreciat

Re: [R] reviewer comment

2013-03-15 Thread John Kane
No idea of what sentence. R-help strips any html and only provides a text message so all formatting has been lost. I think the question is not really an R-help question but if you resubmit the post you need to show the sentence in question in another way. John Kane Kingston ON Canada

Re: [R] Writing a hyperlink to a csv file

2013-03-15 Thread John Kane
Well you can write it there but it won't do anything until read into some software that can interpret it as a url. A csv file is just plain text. John Kane Kingston ON Canada > -Original Message- > From: bsmith030...@gmail.com > Sent: Fri, 15 Mar 2013 07:53:02 -0400

Re: [R] Data manipulation

2013-03-15 Thread John Kane
0 0 3 1 4 4 I see that you have two combinations of Class and X with no entries. Is this what you wanted to show in W? If so, it is not immediately apparent how to go about this. John Kane Kingston ON Canada > -Original Message- > From: ii54...@msn.com > Sent: Fr

Re: [R] Data manipulation

2013-03-15 Thread John Kane
Nice. That does look like it. IOANNA? John Kane Kingston ON Canada > -Original Message- > From: nbla...@ispm.unibe.ch > Sent: Fri, 15 Mar 2013 14:27:03 +0100 > To: ii54...@msn.com, r-help@r-project.org > Subject: Re: [R] Data manipulation > > Is this what yo

Re: [R] reviewer comment

2013-03-15 Thread John Kane
I think this is more a question for something like Cross Validated but you may well get a hint or two here. Unfortunately while I vaguely see what the reviewer is getting at I certainly don't know enough to help. John Kane Kingston ON Canada -Original Me

Re: [R] Reassign values based on multiple conditions

2013-03-15 Thread John Kane
d(testfile, 100)) will be sufficient. Sorry I'm not more helpful John Kane Kingston ON Canada > -Original Message- > From: cat.e.co...@gmail.com > Sent: Fri, 15 Mar 2013 12:46:13 +0800 > To: r-help@r-project.org > Subject: [R] Reassign values based on multiple co

Re: [R] seeking tip to keep first of multiple observations per ID

2013-03-15 Thread John Kane
particularly at answer number 3 which uses the data.table package and which looks like it may do what you want. John Kane Kingston ON Canada > -Original Message- > From: jsdroys...@bellsouth.net > Sent: Fri, 15 Mar 2013 12:06:05 -0400 > To: r-help@r-project.org > Subject:

Re: [R] How to get the t-stat for arima()?

2013-03-20 Thread John Kane
adily available in R it is always good to pause and >> reflect if there might be a good reason. > > I nominate this as a fortune candidate. > Seconded John Kane Kingston ON Canada > -- > Kevin E. Thorpe > Head of Biostatistics, Applied Health Research Centre (AHRC) >

Re: [R] help pairs

2013-03-20 Thread John Kane
https://github.com/hadley/devtools/wiki/Reproducibilityhttps://github.com/hadley/devtools/wiki/Reproducibility John Kane Kingston ON Canada > -Original Message- > From: ingf...@gmail.com > Sent: Wed, 20 Mar 2013 18:18:17 + > To: r-help@r-project.org > Subject: [R] hel

Re: [R] summarize dataframe based on multiple cols, not their combinations

2013-03-20 Thread John Kane
Will this do? library(plyr) ddply(my_df, .(a), summarize, mm = mean(dat), number = length(dat)) John Kane Kingston ON Canada > -Original Message- > From: ashen...@ufl.edu > Sent: Wed, 20 Mar 2013 14:57:36 -0500 > To: r-help@r-project.org > Subject: [R] summarize dat

Re: [R] Compatibility problem Iramuteq / R : help !!!

2013-03-21 Thread John Kane
Data? Code? https://github.com/hadley/devtools/wiki/Reproducibility John Kane Kingston ON Canada > -Original Message- > From: aborr...@ulb.ac.be > Sent: Thu, 21 Mar 2013 12:10:13 +0100 > To: r-help@r-project.org > Subject: [R] Compatibility problem Iramuteq / R : h

Re: [R] Excuse me

2013-03-21 Thread John Kane
If I remember correctly this was possible a few versions ago but was dropped. To do it now you need to use write.table and set row.names = FALSE. John Kane Kingston ON Canada > -Original Message- > From: lina...@pku.edu.cn > Sent: Thu, 21 Mar 2013 16:27:18 +0800 (CST) >

Re: [R] Excuse me

2013-03-21 Thread John Kane
I could have sworn I could not to this in 2.10 or something like that. Thanks for saying it is still there. John Kane Kingston ON Canada > -Original Message- > From: kevin.tho...@utoronto.ca > Sent: Thu, 21 Mar 2013 08:52:17 -0400 > To: jrkrid...@inbox.com > Subject: Re

Re: [R] Bayesian network

2013-03-21 Thread John Kane
You might want to start by reading the Bayesian task view at http://probability.ca/cran/ John Kane Kingston ON Canada > -Original Message- > From: s_zerm...@esi.dz > Sent: Thu, 21 Mar 2013 07:06:40 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Bayesian network &g

[R] ggplot2 will not draw a rectangle. Error: ggplot2 doesn't know how to deal with data of class XXX"

2013-03-22 Thread John Kane
munsell_0.4 [9] plyr_1.8 proto_0.3-10 RColorBrewer_1.0-5 reshape2_1.2.2 [13] scales_0.2.3 stringr_0.6.2 John Kane Kingston ON Canada FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!

Re: [R] ggplot2 will not draw a rectangle. Error: ggplot2 doesn't know how to deal with data of class XXX"

2013-03-22 Thread John Kane
xmax = as.POSIXct("2006-10-31", "%Y-%m-%d")) p <- ggplot(fcs, aes(year, federal.ps )) + geom_line() p + geom_rect(data=rectlib, aes(xmin=xmin, xmax = xmax, ymin=-Inf, ymax = Inf), fill='red', alpha=0.2) ###===

Re: [R] boxplot

2013-03-22 Thread John Kane
he same x and y scales? Or are you talking about essentilly independent data sets that it makes sense to graph in a grid ? John Kane Kingston ON Canada > -Original Message- > From: annij...@gmail.com > Sent: Fri, 22 Mar 2013 10:46:21 -0400 > To: dcarl...@tamu.edu > Subje

Re: [R] ggplot2 will not draw a rectangle. Error: ggplot2 doesn't know how to deal with data of class XXX"

2013-03-22 Thread John Kane
n case the dates were the problem but with no luck. I think it's time for dinner here so I will have another look at it tommorrow --hopefully someone will see the problem. Thanks again. John Kane Kingston ON Canada > -Original Message- > From: sarah.gos...@gmail.com > S

Re: [R] ggplot2 will not draw a rectangle. Error: ggplot2 doesn't know how to deal with data of class XXX"

2013-03-23 Thread John Kane
Thanks to everyone on this. Both Jeff's and Rui's approach worked. It looks like they do equivalent things , that is supplying the x and y values in geom_rect. The worst of it is I think I saw an example using the NULL NULL approach and did not realise the significance of it.

Re: [R] boxplot

2013-03-24 Thread John Kane
ayed response. Yes I am referring to the same type of data in the data sets. For example, the arsenic concentrations in individual groundwater monitoring wells at a groundwater contaminated site, where one well may have 12 concentration measurements, another well has 10, etc.

Re: [R] How do I show real values on a log10 histogram

2013-03-26 Thread John Kane
0,100)) text(12, 50, "y2", srt = 270, xpd = TRUE) par(op) # reset par John Kane Kingston ON Canada > -Original Message- > From: careys...@gmail.com > Sent: Tue, 26 Mar 2013 10:19:09 + > To: r-help@r-project.org > Subject: [R] How do I show re

Re: [R] How to copy current line in Tinn-R

2013-03-26 Thread John Kane
I hve not used Tinn-R in a while (I'm currently running Ubuntu) but I think that you can just click in the left margin to select the line. John Kane Kingston ON Canada > -Original Message- > From: f...@dmu.dk > Sent: Mon, 25 Mar 2013 11:33:28 +0100 > To: r-help@r-proj

Re: [R] How do I show real values on a log10 histogram

2013-03-26 Thread John Kane
o reply to the group especially as a lot of R-help people are a lot more knowledgeable than I am and you often can get faster responses.  I have included the R-help list in this response. John Kane Kingston ON Canada -Original Message- From: careys...@gmail.com Sent: Tue, 26 Mar 201

Re: [R] How do I show real values on a log10 histogram

2013-03-27 Thread John Kane
axis(3, labels = c("10", "100", "1,000", "10,000", "100,000"), at=1:5) text(12, 50, "y2", srt = 270, xpd = TRUE) par(op) # reset par John Kane Kingston ON Canada > -Original Message- > From: maech..

Re: [R] Odd graphic device behavior

2013-03-27 Thread John Kane
Any chance that you made an earlier call to par() resetting cex in your session? I just had that happen. John Kane Kingston ON Canada > -Original Message- > From: tea...@gmail.com > Sent: Tue, 26 Mar 2013 10:15:33 -0400 > To: r-help@r-project.org > Subject: [R] Odd

Re: [R] How do I show real values on a log10 histogram

2013-03-27 Thread John Kane
Glad it worked. Sorry to mislead you so badly. John Kane Kingston ON Canada -Original Message- From: careys...@gmail.com Sent: Wed, 27 Mar 2013 14:09:58 + To: jrkrid...@inbox.com Subject: Re: [R] How do I show real values on a log10 histogram Yes, what

Re: [R] How to search in each excel in my working dir and extract part information of one product in each country?

2013-03-28 Thread John Kane
> -Original Message- > From: metal_lical...@live.com > Sent: Thu, 28 Mar 2013 11:24:43 +0300 > To: r-help@r-project.org > Subject: [R] How to search in each excel in my working dir and extract > part information of one product in each country? > > Hello, > > I have created many excel file

Re: [R] 0e+00

2013-03-29 Thread John Kane
Does this help? http://stackoverflow.com/questions/5963047/do-not-want-scientific-notation-on-plot-axis John Kane Kingston ON Canada > -Original Message- > From: careys...@gmail.com > Sent: Fri, 29 Mar 2013 10:44:16 + > To: r-help@r-project.org > Subject: [R

Re: [R] How do you graph data when you have lots of small values but few extremely large values?

2013-03-29 Thread John Kane
ty or pehaps plotting two graphs or panels (see http://stats.stackexchange.com/questions/1764/what-are-alternatives-to-broken-axes). John Kane Kingston ON Canada > -Original Message- > From: careys...@gmail.com > Sent: Fri, 29 Mar 2013 15:52:17 + > To: r-help@r-project.

Re: [R] Create values based on a table of conditions

2013-03-29 Thread John Kane
ta however dput (head(RD2, 200)) would have been even better than head(RD2, 200). John Kane Kingston ON Canada > -Original Message- > From: cat.e.co...@gmail.com > Sent: Fri, 29 Mar 2013 18:49:45 +0800 > To: r-help@r-project.org > Subject: [R] Create values based on a tabl

Re: [R] how to draw the math graph?

2013-03-30 Thread John Kane
how-to-make-a-great-r-reproducible-example http://people.su.se/~lundh/reproduce/introduction_plot.pdf John Kane Kingston ON Canada > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read

Re: [R] Plotting histogram of RT data

2013-04-02 Thread John Kane
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example What is x=readdir supposed to do? John Kane Kingston ON Canada > -Original Message- > From: circle@gmail.com > Sent: Sun, 31 Mar 2013 22:12:57 +1100 > To: r-help@r-project.org &

[R] Canadian politcal party colours in ggplot2

2013-04-03 Thread John Kane
figure it out but if some some already has got them it would save me some time especially with the NDP orange. Thanks John Kane Kingston ON Canada FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop

Re: [R] Help for bootstrapping‏

2013-04-04 Thread John Kane
It looks like you formatted the code in html and it is essentially impossible to read. Can you resend in plain text? Thanks John Kane Kingston ON Canada > -Original Message- > From: boon_lo...@hotmail.com > Sent: Thu, 4 Apr 2013 15:14:05 +0800 > To: r-help@r-project.o

Re: [R] Canadian politcal party colours in ggplot2

2013-04-04 Thread John Kane
Excellent. I never thought of something like that. Clearly I need to look into the XML package more closely. The peculiar NDP orange comes through just great though for other readers, your example seems to assign the Canadian Alliance colours to the NDP. Quelle horreur! John Kane

Re: [R] Canadian politcal party colours in ggplot2

2013-04-04 Thread John Kane
gs. I have to run now but I'll try this again later and see what happenss. In any case you've given me the colours which is what I had hoped for. Thanks again. John Kane Kingston ON Canada > -Original Message- > From: istaz...@gmail.com > Sent: Thu, 4 Apr 2013 0

Re: [R] Canadian politcal party colours in ggplot2

2013-04-05 Thread John Kane
ot of intensive analysis, as I was then, I'd go back to set options(stringsAsFactors=FALSE). John Kane Kingston ON Canada > -Original Message- > From: istaz...@gmail.com > Sent: Thu, 4 Apr 2013 11:18:53 -0400 > To: jrkrid...@inbox.com > Subject: Re: [R] Canadia

Re: [R] R on portable drives

2013-04-05 Thread John Kane
I have not done it in a couple of years but for some time I always carried a Windows version on R on a USB stick. If you are using Windows just install to the stick rather than your hard drive and you have a fully functioning R. John Kane Kingston ON Canada > -Original Mess

Re: [R] scanning data in R

2013-04-05 Thread John Kane
I did not see a reply to your question. I don't know if you can do it within scan but why not just read in the file and then drop the 21? dat <- scan("stop.txt", sep = "\t") dat1 <- dat[dat!= 21] John Kane Kingston ON Canada > -Original Message--

Re: [R] Canadian politcal party colours in ggplot2

2013-04-05 Thread John Kane
y when we lost it. John Kane Kingston ON Canada > -Original Message- > From: murdoch.dun...@gmail.com > Sent: Wed, 03 Apr 2013 09:58:45 -0400 > To: jrkrid...@inbox.com > Subject: Re: [R] Canadian politcal party colours in ggplot2 > > On 03/04/2013 9:08 AM, John K

Re: [R] While loop history

2013-04-07 Thread John Kane
ust write the values into the vectors as you proceed through the loop. John Kane Kingston ON Canada > -Original Message- > From: bayywa...@gmail.com > Sent: Sun, 7 Apr 2013 14:36:33 +1200 > To: r-help@r-project.org > Subject: [R] While loop history > > Hi, > I a

Re: [R] Boxplot Labels

2013-04-09 Thread John Kane
p <- boxplot(dat1$ave, data= dat1, main= "Average Size", yaxt = "n") text(1.1, , y = max(dat1$ave), label = "26", cex = .7) but I don't understand #I would like the labels that appear in the boxplot to be DATA$num values. You want 26 values p

Re: [R] the joy of spreadsheets (off-topic)

2013-04-16 Thread John Kane
] sounds like a good idea. Unfortunately I am not artistic enough to do a design. 1. Slight paraphrase of J. D Cryer's statement http://homepage.cs.uiowa.edu/~jcryer/JSMTalk2001.pdf John Kane Kingston ON Canada > -Original Message- > From: sarah.gos...@gmail.com > Sent: Tu

Re: [R] 10% off Intro R training from RStudio: NYC May 13-14, SF May 20-21

2013-04-16 Thread John Kane
ropriate. Think of what it would be like if > everyone shilled their R training and consulting wares here. They do. John Kane Kingston ON Canada > > Bert > > Sent from my iPhone -- please excuse typos. > > On Apr 16, 2013, at 8:09 AM, Hadley Wickham wrote: > >&g

Re: [R] the joy of spreadsheets (off-topic)

2013-04-16 Thread John Kane
I tend to live in fear that some spreadsheet calculating a drug dose for me will use my telephone number rather than my weight. John Kane Kingston ON Canada > -Original Message- > From: f.harr...@vanderbilt.edu > Sent: Tue, 16 Apr 2013 13:20:46 -0500 > To: r-h...@stat.

Re: [R] need help with R

2013-04-16 Thread John Kane
how to describe a problem and lay out your code. Welcome John Kane Kingston ON Canada > -Original Message- > From: sam.ting...@gmail.com > Sent: Mon, 15 Apr 2013 18:09:25 +1200 > To: r-help@r-project.org > Subject: [R] need help with R > > hey there > &g

Re: [R] Error: could not find function "invlogit" and "bayesglm"

2013-04-17 Thread John Kane
Have you loaded it? library(arm) John Kane Kingston ON Canada > -Original Message- > From: masan...@uniswa.sz > Sent: Wed, 17 Apr 2013 10:08:39 +0200 > To: r-help@r-project.org > Subject: [R] Error: could not find function "invlogit" and "bayesglm" &g

Re: [R] plot 2 y axis

2013-04-17 Thread John Kane
b = "Weight") plot(dat1$Date, dat1$Height, col = "blue", xlab = "Date", ylab = "Height") par <- opar John Kane Kingston ON Canada > -Original Message- > From: ye...@lbl.gov > Sent: Tue, 16 Apr 2013 15:35:29 -0700 > To: r-help@r-proje

Re: [R] tables package - error message of "duplicate values"

2013-04-19 Thread John Kane
Are you sure that it is not just telling you that it cannot tabulate on a since it only has one value? John Kane Kingston ON Canada > -Original Message- > From: santosh2...@gmail.com > Sent: Fri, 19 Apr 2013 13:29:05 -0700 > To: r-help@r-project.org > Subject: [R]

Re: [R] Spider Plot

2013-04-19 Thread John Kane
Attachment did not make it. The list is picky about what it accepts. txt and pdf both get through as IIRC png. Anyway does ?stars help or it is more complicated? John Kane Kingston ON Canada > -Original Message- > From: lihaw...@gmail.com > Sent: Fri, 19 Apr 2013 14:29

Re: [R] Multiple lon lat points in the map with ggplot2

2013-04-23 Thread John Kane
s, you can just supply a representative sample. Usually, dput(head(testfile, 100)) will be sufficient. John Kane Kingston ON Canada > -Original Message- > From: simolas2...@gmail.com > Sent: Mon, 22 Apr 2013 15:20:09 +0200 > To: r-help@r-project.org > Subject: [R] M

Re: [R] Need to replicate Boltzman Signmodial Curve fit from Graph Pad

2013-04-23 Thread John Kane
No idea of the area but does this link help? http://bioinformatics.oxfordjournals.org/content/24/13/1549.full John Kane Kingston ON Canada > -Original Message- > From: rnoob...@gmail.com > Sent: Tue, 23 Apr 2013 10:55:59 -0400 > To: r-help@r-project.org > Subject: [R] Ne

Re: [R] identify object that causes "Error in loadNamespace(name) : there is no package called ‘R.utils’"

2013-04-24 Thread John Kane
frequently, it's difficult to tell whether or not your code is > reproducible. > > Hadley > > -- > Chief Scientist, RStudio > http://had.co.nz/ Not to mention http://www.mail-archive.com/r-help@r-project.org/msg196997.html John Kane Kingston ON Canada __

Re: [R] How are R version types named ? Any convention (like Hurricanes etc)

2013-04-25 Thread John Kane
I am not sure but it looks suspiciously like a set of references to the comicstrip Peanuts by Charlie Shultz. http://en.wikipedia.org/wiki/Peanuts John Kane Kingston ON Canada > -Original Message- > From: ohri2...@gmail.com > Sent: Thu, 25 Apr 2013 15:16:17 +0530 >

Re: [R] problem with geom_point in ggplot using a different column

2013-04-25 Thread John Kane
https://github.com/hadley/devtools/wiki/Reproducibility John Kane Kingston ON Canada > -Original Message- > From: angerusso1...@gmail.com > Sent: Thu, 25 Apr 2013 11:09:18 -0400 > To: r-help@r-project.org, r-help-requ...@r-project.org > Subject: [R] problem with geom_

Re: [R] RStudio.. text editor

2013-04-25 Thread John Kane
I have not use tinn-r in a while but Tools > Options > Code Editing perhaps? John Kane Kingston ON Canada > -Original Message- > From: santosh2...@gmail.com > Sent: Thu, 25 Apr 2013 12:04:17 -0700 > To: r-help@r-project.org > Subject: [R] RStudio.. text editor >

Re: [R] csv file with two header rows

2013-04-26 Thread John Kane
I don't think so. read.csv is a striped down version of read.table. You should be able to do this with the skip option there. John Kane Kingston ON Canada > -Original Message- > From: analys...@hotmail.com > Sent: Thu, 25 Apr 2013 18:35:42 -0700 (PDT) > To: r-h

Re: [R] Trouble Computing Type III SS in a Cox Regression

2013-04-26 Thread John Kane
Seconded John Kane Kingston ON Canada > -Original Message- > From: rolf.tur...@xtra.co.nz > Sent: Fri, 26 Apr 2013 10:13:52 +1200 > To: thern...@mayo.edu > Subject: Re: [R] Trouble Computing Type III SS in a Cox Regression > > On 26/04/13 03:40, Terry Therneau wro

Re: [R] the joy of spreadsheets (off-topic)

2013-04-26 Thread John Kane
>From a quick read, the Excel error prior for incompetence looks high but >some of the other issues hint that the prior for the overall findings was >remarkably in favor of malice. John Kane Kingston ON Canada > -Original Message- > From: s.elli...@lgcgroup.com >

Re: [R] csv file with two header rows

2013-04-27 Thread John Kane
Thanks Peter, I must have misread the read.csv help. I thought skip had been dropped with a couple of other options. John Kane Kingston ON Canada > -Original Message- > From: pda...@gmail.com > Sent: Sat, 27 Apr 2013 09:48:22 +0200 > To: jrkrid...@inbox.com > Subject: R

Re: [R] example

2013-04-27 Thread John Kane
https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example It is not clear what you want. Do you need to generate the data or do something with existing data? John Kane Kingston ON Canada > -Origi

Re: [R] r syntax

2013-04-28 Thread John Kane
Note that Rui used 1L and 2L to give you integers. If he had used 1 and 2 you would have gotten real numbers. John Kane Kingston ON Canada > -Original Message- > From: ruipbarra...@sapo.pt > Sent: Sat, 27 Apr 2013 23:57:30 +0100 > To: inf...@gmail.com > Subject: R

Re: [R] Stacked geom_bar with aggregated SE -ggplot2

2013-04-30 Thread John Kane
code you have been working with. Definately look at ?dput as a way to provide the sample data. Have a look at https://github.com/hadley/devtools/wiki/Reproducibility for some suggestions on how to put frame a question for the R-help list. John Kane Kingston ON Canada > -Original Mess

Re: [R] functional data object

2013-05-01 Thread John Kane
-great-r-reproducible-example John Kane Kingston ON Canada > -Original Message- > From: dwinabil...@yahoo.com > Sent: Tue, 30 Apr 2013 16:49:48 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] functional data object > > Dear Mr/ms > > My name is dwi nabila.

Re: [R] generate gaussian

2013-05-08 Thread John Kane
Someone probably could help but you did not tell us what the problem is. http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada > -Original Message- > From: triutami@gmail.com > Sent: Thu, 9 May 2013 00:03:25 +

Re: [R] scatter plot matrix with different x-y variables

2013-05-08 Thread John Kane
q) ### I imagine that you will need to install the ggplot2 and gridExtra packages. See ?install.packages for help John Kane Kingston ON Canada > -Original Message- > From: adelda...@gmail.com > Sent: Wed, 8 May 2013 09:49:25 -0700 (PDT) > To: r-help@r-project.org > Subj

Re: [R] Correctly Setting New Seed

2013-05-08 Thread John Kane
://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example Thanks John Kane Kingston ON Canada > -Original Message- > From: eller...@musc.edu > Sent: Wed, 8 May 2013 14:50:42 -0400 > To: eller...@musc.edu, r-help@r-project.org > Subject: Re: [R] Correctly S

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