Re: [R] ggplot2 with separate average lines

2012-08-08 Thread John Kane
s a better choice. John Kane Kingston ON Canada > -Original Message- > From: alan.mil...@synopsys.com > Sent: Wed, 8 Aug 2012 15:32:23 + > To: r-help@r-project.org > Subject: [R] ggplot2 with separate average lines > > Hi I'm just starting off with R bu

Re: [R] Installing HDF5 package

2012-08-08 Thread John Kane
You have not told us what you have done or what your OS is. In any case R is case sensitive so try: install.packages("hdf5") John Kane Kingston ON Canada > -Original Message- > From: saadsihe...@gmail.com > Sent: Wed, 8 Aug 2012 09:25:06 -0700 (PDT) > To

Re: [R] decimal points midline

2012-08-08 Thread John Kane
Can you point to an example? It sounds like the journal is still using typewriters. John Kane Kingston ON Canada > -Original Message- > From: arrayprof...@yahoo.com > Sent: Wed, 8 Aug 2012 11:52:27 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] decimal points

Re: [R] R versus SAS

2012-08-09 Thread John Kane
> -Original Message- > From: j...@bitwrit.com.au > Sent: Thu, 09 Aug 2012 19:55:29 +1000 > To: rolf.tur...@xtra.co.nz > Subject: Re: [R] R versus SAS > > On 08/09/2012 07:17 AM, Rolf Turner wrote: >> ... >> P. S. There is no such word as "recompensate". >> > Thanks to R, the internet and

Re: [R] read htm table error

2012-08-09 Thread John Kane
labeling_0.1 [5] MASS_7.3-20 memoise_0.1 munsell_0.3 proto_0.3-9.2 [9] tools_2.15.1 1> John Kane Kingston ON Canada > -Original Message- > From: kiung@sensis.com.au > Sent: Thu, 9 Aug 2012 06:55:17 + > To: r-help@r-project.org > Subject: [R] re

Re: [R] R Commander - Time Series

2012-08-09 Thread John Kane
r off with a terminal and good R editor. Tinn-R for Windows or gedit for linux are not bad and some fanatics love EMACS with ESS :) Wecome to R. John Kane Kingston ON Canada > -Original Message- > From: billpete...@hotmail.com > Sent: Thu, 9 Aug 2012 06:54:50 -0700 (PDT)

Re: [R] Fill pattern for Boxplots?

2012-08-09 Thread John Kane
Probably not. See http://r.789695.n4.nabble.com/Boxplot-Fill-Pattern-td4457209.html on this topic. What exactly are you doing? There may be a workaround or alternative. John Kane Kingston ON Canada > -Original Message- > From: meyfa...@uni-potsdam.de > Sent: Wed, 8 Aug 2012

Re: [R] R Commander - Time Series

2012-08-09 Thread John Kane
> Rather dput(head(my data, 50)) Argh!!! I think that in the third time in three weeks . John Kane Kingston ON Canada > -Original Message- > From: michael.weyla...@gmail.com > Sent: Thu, 9 Aug 2012 10:29:07 -0500 > To: jrkrid...@inbox.com > Subject: Re: [R] R Comma

Re: [R] Fill pattern for Boxplots?

2012-08-09 Thread John Kane
You might want to have a look at RColorBrewer. If I remember correctly some of their palettes should work better than a standard R greyscale but I must admit I have not tried them. http://www.decisionstats.com/color-palettes-in-r-using-rcolorbrewer-rstats/ for a start. John Kane Kingston

Re: [R] R Commander - Time Series

2012-08-09 Thread John Kane
Skitt's is definately the name I remember. Very active on some English language newsgroups. John Kane Kingston ON Canada > -Original Message- > From: dwinsem...@comcast.net > Sent: Thu, 9 Aug 2012 13:13:40 -0700 > To: jrkrid...@inbox.com > Subject: Re: [R] R Com

Re: [R] help error histograma

2012-08-10 Thread John Kane
You probably need to post the data here, or somewhere such as [url=http://www.mediafire.com/][b]MediaFire[/b][/url] for other readers to examine. To post it here use dput() and paste the results into the email. John Kane Kingston ON Canada > -Original Message- > From: aprend

Re: [R] ggplot2 geom_bar produces white slashes in legend keys

2012-08-10 Thread John Kane
I cannot reproduce this unless you are referring to the white lines between each level of the cut factor. See http://www.mediafire.com/view/?14k2z7a1x3ln9nh for my results. Are we using the same ggplot2 version? See sessionInfo below. John Kane Kingston ON Canada sessionInfo() R version

Re: [R] subsetting levels of a vector

2012-08-10 Thread John Kane
t1$Electrode == "F4") John Kane Kingston ON Canada > -Original Message- > From: mancinisim...@yahoo.it > Sent: Fri, 10 Aug 2012 10:07:31 +0100 (BST) > To: r-help@r-project.org > Subject: [R] subsetting levels of a vector > > Hi, > > > I need to su

Re: [R] help error histograma

2012-08-10 Thread John Kane
) <- dados == -999.9 John Kane Kingston ON Canada #=Original Code=# library(MASS) dados<-read.table("/home/john/rdata/pelotas.txt",header=FALSE) is.na(dados) <- dados == -999.9 # what the devil? jrk png(filename="teste1.p

Re: [R] help error histograma

2012-08-10 Thread John Kane
Oh, okay. I just missed it completely since your data didn't have any missing data so I could not visualise why it was there. I assume -999.9 was in older data. John Kane Kingston ON Canada > -Original Message- > From: aprendizprog...@hotmail.com > Sent: Fri, 10 Aug

Re: [R] choosing multiple columns

2012-08-11 Thread John Kane
be of real help www.et.bs.ehu.es/~etptupaf/pub/R/RforSAS&SPSSusers.pdf John Kane Kingston ON Canada > -Original Message- > From: sachin.abeyward...@gmail.com > Sent: Sat, 11 Aug 2012 21:59:59 +1000 > To: r-help@r-project.org > Subject: [R] choosing multiple columns > > H

Re: [R] Trouble with Spatial Data Example Script

2012-08-11 Thread John Kane
methods base other attached packages: [1] sp_0.9-99 loaded via a namespace (and not attached): [1] fortunes_1.5-0 grid_2.15.1lattice_0.20-6 John Kane Kingston ON Canada > -Original Message- > From: lorenzo.ise...@gmail.com > Sent: Fri, 10 Aug 2012 22:20:56 +0200

Re: [R] Not able to filter factor, class

2012-08-14 Thread John Kane
Are you sure that you are not confusing the number of levels with the length of the vector? John Kane Kingston ON Canada > -Original Message- > From: balanagudevaray...@gvkbio.com > Sent: Tue, 14 Aug 2012 12:40:26 + > To: r-help@r-project.org > Subject: [R] Not

Re: [R] boxplot help

2012-08-15 Thread John Kane
character values and need to be converted into datesfor you to get the chronological date order. See ?strptime or perhaps install the lubridate package for help there. Otherwise welcome to R Note to other readers : I think I actually got the dput syntax this time!! John Kane Kingston ON Canada

Re: [R] which() function not finding certain numbers

2012-08-15 Thread John Kane
It looks like an example of FAQ 7.31 Why doesn't R think these numbers are equal? John Kane Kingston ON Canada > -Original Message- > From: tomasb...@gmail.com > Sent: Wed, 15 Aug 2012 22:37:17 +1000 > To: r-help@r-project.org > Subject: [R] which() function

Re: [R] boxplot help

2012-08-15 Thread John Kane
dates", "temp", "year"), class = "data.frame", row.names = c(NA, -50L )) # Then give this a try. It looks a bit weird as I just generated a bunch of dates. #= library(ggplot2) p <- ggplot( mydat , aes(as.factor(

Re: [R] help function axis

2012-08-15 Thread John Kane
Well, first thing wrong is no data. See ?dput as a way to supply sample data Other than that everything seems okay or at least x<-1:6 plot(x,type="o",axes=FALSE,xlab="year",ylab="cases") axis(1,at=1:6, lab=c("2000","2001","2002"

Re: [R] Reading one column .csv file

2012-08-15 Thread John Kane
I cannot duplicate this using LibreOffice Calc. It saves exactly as one would expect. John Kane Kingston ON Canada > -Original Message- > From: dwarnol...@suddenlink.net > Sent: Wed, 15 Aug 2012 10:27:54 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Reading

Re: [R] Variables and greek letters in a plot title

2012-08-16 Thread John Kane
plot(rnorm(50), main=bquote(.(x)*" "* mu * g/m^3 * " substance")) John Kane Kingston ON Canada > -Original Message- > From: dominik.refa...@gmail.com > Sent: Thu, 16 Aug 2012 12:50:57 +0200 > To: jjon...@gmail.com > Subject: Re: [R] Variable

Re: [R] barchart with 3 Arguments

2012-08-28 Thread John Kane
No data is attached. The R-help list usually strips out attachments to prevent viruses or malware spreading. Use dput to include the data . Just do : dput(mydata) and copy the results into your email. Also it is a good idea to include the code that you are using. John Kane Kingston ON

Re: [R] date in plot, can't add regression line

2012-08-28 Thread John Kane
# plot a grid of results pgrid <- p <- ggplot(mydata , aes( timestamp, x)) + geom_point() + geom_smooth(method = lm, se = FALSE) + facet_grid(tradeflavor ~ .) pgrid # Have fun with R. John Kane Kingston ON Canada > -Original Message- > From: n

Re: [R] Font size in geom_dl (using ggplot2)

2012-08-28 Thread John Kane
Sample data? Some representative sample data really is needed to see what you are doing. Have a look at dput() for a handy way to present data. Also where did theme_complete_bw come from? Is it a special formattng function? John Kane Kingston ON Canada > -Original Mess

Re: [R] Sorting of columns of a matrix

2012-08-29 Thread John Kane
Perhaps you could supply the matrix using dput() ? It is a handy way to supply sample data. Just do dput(mydata), copy the results and paste into email. At the moment your matrix is almost unreadable. John Kane Kingston ON Canada > -Original Message- > From: nicome...@gma

Re: [R] Help on Plot Title where text is "mixed" with numerical carachters

2012-08-30 Thread John Kane
?paste plot(1, main = paste(x, "hours", y , "minutes", z , "seconds", sep =" ")) John Kane Kingston ON Canada > -Original Message- > From: motyoc...@yahoo.com > Sent: Thu, 30 Aug 2012 06:49:04 -0700 (PDT) > To: r-help@r-project

Re: [R] Tendonitis and R users

2012-09-04 Thread John Kane
is consult your institutions health and safety people about solutions such as ergonomic keyboards etc. John Kane Kingston ON Canada > -Original Message- > From: resea...@namibia.pharmaccess.org > Sent: Tue, 4 Sep 2012 12:55:36 + > To: r-help@r-project.org > Subject: [

Re: [R] method or package to make special boxplot

2012-09-08 Thread John Kane
Please supply some sample data and preferably the code that you have used so far. To supply data the best way is probably to use the dput() function. If your data is 'mydata' simply do : dput(mydata) and paste the results into your email John Kane Kingston ON Canada >

Re: [R] How to Rename Column Labels?

2012-09-08 Thread John Kane
able(mydata) mytable names(mytable) <- c("Mike", "Kate", "Michelle", "Paul Young") mytable John Kane Kingston ON Canada > -Original Message- > From: youn.seh...@gmail.com > Sent: Fri, 7 Sep 2012 22:54:32 -0400 > To: r-help@r-proje

Re: [R] Producing a table with mean values

2012-09-08 Thread John Kane
value), sd = sd(value)) tabx John Kane Kingston ON Canada > -Original Message- > From: tsonne...@gmail.com > Sent: Fri, 7 Sep 2012 22:49:55 +0200 > To: r-help@r-project.org > Subject: [R] Producing a table with mean values > > Hi All, > > I have a data set wit

Re: [R] Producing a table with mean values

2012-09-09 Thread John Kane
My stupdity I made a late edit for clarity and forgot to run it to be sure I had changed everything. It should read: tabx <- ddply(meltx, .(Seamount, variable), summarize, mean = mean(value), sd = sd(value)) My appologies. John Kane Kingston ON Canada > -Original Message-

Re: [R] Very simple loop

2011-11-18 Thread John Kane
As others have said, no need for a loop Another approach mydata <- data.frame(A = dpois(x,exp(4.5355343)), B = dpois(x,exp(4.5355343 + 0.0118638)), C = dpois(x,exp(4.5355343 -0.0234615)), D = dpois(x,exp(4.5355343 + 0.0316557)), E = dpois(x,exp(4.5355343 + 0.0004716)), F = dpois(x,exp(4.5355343 +

[R] R and Tinn-R communication problems

2011-11-18 Thread John Kane
I have a couple of Tinn-R problems that I hope someone may be able to make some suggestions about or point me to a Tinn-R source. So far I have not found anything particularly relevant by googling on Tinn-R. NOTE: Just to be on the safe side I uninstalled both R and Tinn-R , ran some cleanup

Re: [R] Data analysis: normal approximation for binomial

2011-11-20 Thread John Kane
Hi Colin, I'm no statistician and it's been a very long time but IIRC a t-test is a 'modified version of a x-test that is used on small sample sizes. (I can hear some of our statistians screaming in the background as I type.) In any case I thing a Z distribution is descrete and a standard norm

Re: [R] Data analysis: normal approximation for binomial

2011-11-21 Thread John Kane
#x27;s a little like early factor analysis when rotate the factors actually meant rotate the glass plates. --- On Sun, 11/20/11, Colstat wrote: From: Colstat Subject: Re: [R] Data analysis: normal approximation for binomial To: "John Kane" Cc: r-help@r-project.org Received: Sunday, No

Re: [R] Scatter plot - using colour to group points?

2011-11-21 Thread John Kane
Another approach would be to use ggplot2.  Code can look a bit daunting to begin with but ggplot2 is a very versitile graphing package and well worth learning. Simple example = library(ggplot2) mydata <- data.frame(site=c("A","A","A", "

Re: [R] plotting multiple lines on single graph ggplot2

2011-11-28 Thread John Kane
There are probably lots of better aproaches but this seems to work. I just combined the lines into one vector and assighed a dummy variable to mark the diffferent lines ibrary(ggplot2) mydata <- data.frame(xrange <- c(100, 200, 300, 400, 500, 600, 700, 800, 900, 1000), yrange =

Re: [R] plotting multiple lines on single graph ggplot2

2011-11-28 Thread John Kane
.frame I supplied does work either with ggplot() or qplot() > Regards > On Mon, Nov 28, 2011 at 5:31 PM, Ben Bolker > wrote: > > John Kane yahoo.ca> > writes: > > > >> > >> There are probably lots of better aproaches but > this seems to work.

Re: [R] 2 Y-AXIS labels on the same (left-hand side) Y-AXIS XXXX

2011-11-28 Thread John Kane
I think your assumption is correct. Have a look at ?par. It's been a while but I think you need to modify the mai or mar values. Probably the mar. --- On Mon, 11/28/11, Dan Abner wrote: > From: Dan Abner > Subject: [R] 2 Y-AXIS labels on the same (left-hand side) Y-AXIS > To: r-help@r-pr

Re: [R] Group several variables and apply a function to the group

2011-12-04 Thread John Kane
?aggregate should do it aggregate(df$x,list(df$comn, df$mi), sd) There are other ways of course Using the reshape2 package library(reshape2) x1 <- melt(df, id=c("comn", "mi")) dcast(x1, comn + mi ~ variable, sd) --- On Sun, 12/4/11, Aurélien PHILIPPOT wrote: > From: Aurélien PHILIPPOT >

Re: [R] Summary tables of large datasets including character and numerical variables

2011-12-26 Thread John Kane
It would be  very helpful to have an actual sample of your data. As usual in R there are probably several different ways to approach the problem but a small sample of the data or a mock-up would be most helpful. Probably the easiest way to supply some data would be something like df1 <- mydata[

Re: [R] Summary tables of large datasets including character and numerical variables

2011-12-27 Thread John Kane
A function like the one below will give you the class and number of valid entries for a dataset.  At sample data set would help determine if it works. It works on a simple data set I created and one from the ggplot2 package but it is not really tested. With your data set as df1 something like xx

Re: [R] need help on melt/cast

2011-09-22 Thread John Kane
And I always have a problem with reshape(). Mind you I often have similar problems with melt() Anyway with the data.frame xx, try melt(xx, id=c("ID")) --- On Thu, 9/22/11, Uwe Ligges wrote: > From: Uwe Ligges > Subject: Re: [R] need help on melt/cast > To: "Eugene Kanshin" > Cc: r-help@r

Re: [R] Upgrade R?

2011-11-10 Thread John Kane
You might want to try Revo Uninstaller. Reportedly it hunts down and kills just about anything connected to a program that you want to uninstall. I have only used it once but it seems to work. There is a free and a paid version. I have the free one. --- On Thu, 11/10/11, Kevin Burton wrot

Re: [R] Connecting points on a line with arcs/curves

2012-03-01 Thread John Kane
That's nice. Please read the posting guidelines and get back to us with some information on what the data looks like an what you are doing. For example do you just want lines or do you want a smoother, etc? John Kane Kingston ON Canada > -Original Message- > From: ir..

Re: [R] Standard variance / devistion clarification

2012-03-01 Thread John Kane
boxplot(xx) After this it gets more complicated, but it you're new here let's take it one step at a time John Kane Kingston ON Canada > -Original Message- > From: suranga...@gmail.com > Sent: Thu, 1 Mar 2012 09:30:59 -0800 > To: r-help@r-project.org &g

Re: [R] Cleaning up messy Excel data

2012-03-03 Thread John Kane
Seconded John Kane Kingston ON Canada > -Original Message- > From: rolf.tur...@xtra.co.nz > Sent: Sat, 03 Mar 2012 13:46:42 +1300 > To: 538...@gmail.com > Subject: Re: [R] Cleaning up messy Excel data > > On 03/03/12 12:41, Greg Snow wrote: > > >&g

Re: [R] Changing the size of a plot

2012-03-07 Thread John Kane
Probably depends on what and how you are plotting. Please do read the posting instructions. Provide us with some sample data and sample code. See ?dput for a convenient way to post sample data. John Kane Kingston ON Canada > -Original Message- > From: mohammadianalimo

Re: [R] Problems with generalized linear model (glm) coefficients.

2012-03-08 Thread John Kane
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. We have nothing at all to go on. John Kane Kingston ON Canada > -Original Message- > From: lpchaparro...@gmail.com > Sent: Wed, 7 Ma

Re: [R] Novice Alert!: odfWeave help!

2012-03-08 Thread John Kane
k. It is a powerful tool John Kane Kingston ON Canada > -Original Message- > From: sjcast...@gmail.com > Sent: Wed, 7 Mar 2012 19:24:26 -0800 (PST) > To: r-help@r-project.org > Subject: [R] Novice Alert!: odfWeave help! > > Hello world, > I'm pretty new to co

Re: [R] How to sort frequency distribution table?

2012-03-08 Thread John Kane
Here is a quick start. You will have to either greatly reduce the length of the names or play around with various plot or barplot options to get the x labels. Have a look at ?plot.default and ?barplot for more information John Kane Kingston ON Canada

Re: [R] how to modify the tickment of x-axis

2012-03-08 Thread John Kane
The R-help list usually strips attachements and did so with yours so we have no data. You can include sample data by using dput and pasting the result into your email. See ?dput for more information. John Kane Kingston ON Canada > -Original Message- > From: totang...@gma

Re: [R] Problem with a Matrix

2012-03-08 Thread John Kane
I think this is what you want. library(reshape2) dcast( xx, Site.No ~ Plant.Name) John Kane Kingston ON Canada > -Original Message- > From: medo_bot...@hotmail.com > Sent: Thu, 8 Mar 2012 01:20:42 -0800 (PST) > To: r-help@r-project.org > Subject: [R] Problem with a Matri

Re: [R] Fwd: how to modify the tickment of x-axis

2012-03-17 Thread John Kane
5, 6, 3, 5, 3, 6, 4, 0, 2, 4, 6, 8, 10, 12, NA, 9, 9, 8, 9, 8, 1, 2, 3, 4, 5, 6, 12, 42, NA, 45, 32, 54, 13, 15, 17, 19, 21, 23), .Dim = c(6L, 8L), .Dimnames = list(NULL, c("cata", "catb", "doga", "dogb", "rata", "ratb", "bata", &

Re: [R] word frequency count

2012-03-18 Thread John Kane
? table First however confirm "that milk,bread" is a single datum. str() should do this Can you post a sample of the data here using dput()? John Kane Kingston ON Canada > -Original Message- > From: mailme...@googlemail.com > Sent: Sun, 18 Mar 2012 13:12:48 +

Re: [R] assign a value to an element

2012-03-19 Thread John Kane
I am not sure that I understand but does something like this do what you want? ec<-1:10 vec[vec==4] <- 100 vec <- 1:10 vec[ vec==4 | vec==8] <- 100 vec <- 1:10 aa <- 50 vec[vec==4] <- aa John Kane Kingston ON Canada > -Original Message- > From: marc_...@y

Re: [R] Any package recommended for time series graphics in R?

2012-03-22 Thread John Kane
Have a look at the Time series Task View. Go to a CRAN site and you should see a task view button on the upper left side of the window. It should give you some leads. John Kane Kingston ON Canada > -Original Message- > From: miao...@gmail.com > Sent: Thu, 22 Mar 2012

Re: [R] reading header in txt file and making histogram

2012-03-26 Thread John Kane
data is. John Kane Kingston ON Canada > -Original Message- > From: bamboohydraul...@gmail.com > Sent: Sun, 25 Mar 2012 22:23:18 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] reading header in txt file and making histogram > > Dear all > > I am a BEGINN

Re: [R] R help

2012-01-18 Thread John Kane
That's okay.  The mail goes to thousands of people some of whom can help with  a specfic problem. It is very useful for some one who is a beginer to read some of the answers. You learn a lot by reading about others problems that are similar to yours. Otherwise do what I do: Just delete any p

Re: [R] Legend that is big?

2012-01-21 Thread John Kane
Try something like this: legend('bottom', leg.txt, horiz = TRUE, cex=.75) A workable example is requested and would have been helpful. - Original Message - From: Kevin Burton To: r-help@r-project.org Cc: Sent: Saturday, January 21, 2012 8:47:36 AM Subject: [R] Legend that is big? I c

Re: [R] How to Compare the median to the mean?

2012-02-04 Thread John Kane
This is reallly not a list for homework help. However I'd guess that you are supposed to discuss the mean and median, not assault them with R :) I probably shouldn't do this. :( Plot the data and then discuss the mean & median John Kane Kingston ON Canada >

Re: [R] Having trouble controlling plot() output (e.g., color)

2012-02-04 Thread John Kane
I did get a nice graph with colour if I use ggplot2. Note I changed the bs$log_t variable name to logt as ggplot did not like the bs$ library(ggplot2) names(bs_mean) <- c("month", "logt") p <- ggplot(bs_mean, aes(month, logt)) p <- p + geom_point(colour = &quo

Re: [R] strftime - Dates from Excel files

2012-02-04 Thread John Kane
I think you are using the wrong function. See ?strftime Try dataset=c("1/2/1978") strptime(dataset,"%d/%m/%Y") John Kane Kingston ON Canada > -Original Message- > From: rrast...@gmail.com > Sent: Fri, 3 Feb 2012 14:34:09 +0100 > To: r-help@r-project.org

Re: [R] Need to aggregate large dataset by week...

2012-02-11 Thread John Kane
=list(xx$week), mean) library(reshape) mm <- melt(xx, id=c("week")) cast(mm, week ~ variable, mean) John Kane Kingston ON Canada > -Original Message- > From: revda...@gmail.com > Sent: Fri, 10 Feb 2012 04:55:44 -0800 (PST) > To: r-help@r-project.org > Su

Re: [R] how to plot a nice legend?

2012-02-12 Thread John Kane
a,b, colour=c)) + geom_point() -- John Kane Kingston ON Canada > -Original Message- > From: n...@jonasstein.de > Sent: Sun, 12 Feb 2012 02:07:06 +0100 > To: r-h...@stat.math.ethz.ch > Subject: Re:

Re: [R] Multiple line-plot

2012-02-16 Thread John Kane
What are you expecting to get? At the moment it appears that you are just ploting one data vector. table() is giving you a one row table. BTW you probably should not use data as a data.frame name. It is a reserved word. John Kane Kingston ON Canada > -Original Message- >

Re: [R] overlay of two sets of boxplots

2012-02-20 Thread John Kane
difficult to suggest more. By the way dput (see ?dput) is a handy way to supply a sample data set here. John Kane Kingston ON Canada > -Original Message- > From: ap...@neuro.mpg.de > Sent: Mon, 20 Feb 2012 10:27:11 + > To: r-help@r-project.org > Subject: [R] overlay

Re: [R] overlay of two sets of boxplots

2012-02-20 Thread John Kane
Does something like the code below give you want you want? It requires the ggplot2 package so you will likely have to install it. John Kane Kingston ON Canada # sample data converted using dput xx <- structure(list(X = c("Exp1

[R] install rJava in Ubuntu 11.10

2012-02-24 Thread John Kane
I am trying to install rJava on a WUBI Ubuntu 11.10 installation of R with no luck. I was originally trying to install the iplots package and encountered this rJava problem. Code used: install.packages("rJava") (CRAN mirrors --Canada(ON) and Canada(QC2) I installed iplots with no problem on W

Re: [R] install rJava in Ubuntu 11.10

2012-02-25 Thread John Kane
John Kane Kingston ON Canada > -Original Message- > From: e...@debian.org > Sent: Sat, 25 Feb 2012 06:44:33 -0600 > To: jrkrid...@inbox.com > Subject: Re: [R] install rJava in Ubuntu 11.10 > > > On 24 February 2012 at 10:32, John Kane wrote: > | I am trying

Re: [R] Cannot use negative argument in function

2012-02-29 Thread John Kane
Do an str() on the data. It looks like temp is a factor and I doubt that factors can be negative. John Kane Kingston ON Canada > -Original Message- > From: svfil...@alaska.edu > Sent: Tue, 28 Feb 2012 22:03:19 -0800 (PST) > To: r-help@r-project.org > Subject: [R] Cann

Re: [R] Database

2012-02-29 Thread John Kane
s you have millions of data items you are probably okay in R. For your example. Assume nams1 is from dataset 1 and nams 2 is from dataset 2. = nams1 <- letters[1:5] nams2 <- letters[3:7] nams1 %in% nams2 ===== Done. John Kane

Re: [R] Cleaning up messy Excel data

2012-02-29 Thread John Kane
(mydata <- as.factor(c("1","2","3", ">2", "5", ">2"))) str(mydata) newdata <- as.character(mydata) newdata[newdata==">2"] <- 0 newdata <- as.numeric(newdata) str(newdata) We really need to keep Excel (an

[R] ggplot2 dot chart-start at zero

2012-02-29 Thread John Kane
grid stats graphics grDevices utils datasets methods [8] base other attached packages: [1] ggplot2_0.8.9 proto_0.3-9.2 reshape_0.8.4 plyr_1.7 John Kane Kingston ON Canada FREE 3D MARINE AQUARIUM SCREENSAVER - Watch

Re: [R] FW: Combined grouped and stacked bargraph

2012-04-25 Thread John Kane
dput() [see ?dput for information] and then just paste the output into your email. I expect you would get faster and better answers. John Kane Kingston ON Canada > -Original Message- > From: nicola.vanwil...@sanparks.org > Sent: Wed, 25 Apr 2012 14:42:49 +0200 > To: r-help@r

Re: [R] problem in matching numbers in two variables

2012-04-28 Thread John Kane
I think this works bu there probably is a better way. xy <- x %% y which(xy != 0) John Kane Kingston ON Canada > -Original Message- > From: sagarnikam...@gmail.com > Sent: Sat, 28 Apr 2012 08:28:39 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] problem in m

Re: [R] problem in matching numbers in two variables

2012-04-29 Thread John Kane
I think I misread the question. Is this what you want j <- c(1,1,2,2,3) k <- c(2,1,1,1,1) xx <- j == k which(xx == TRUE) John Kane Kingston ON Canada > -Original Message- > From: sagarnikam...@gmail.com > Sent: Sat, 28 Apr 2012 23:48:43 -0700 (PDT) > To:

Re: [R] Different varable lengths

2012-04-30 Thread John Kane
> length(Sweden.GDP.gap.adjust) [1] 8 > Sweden.GDP.gap.adjust [1] 0.673792123 1.196706756 1.196131539 0.646944002 -0.312886525 [6] -1.706584861 -0.369401194 -0.003280389 R is reading Sweden.GDP.gapp.adjust as having 8 elements. Why I don't know. John Kane Kingsto

Re: [R] Different varable lengths

2012-05-01 Thread John Kane
> -Original Message- > From: sarah.gos...@gmail.com > Sent: Mon, 30 Apr 2012 17:06:19 -0400 > To: jrkrid...@inbox.com > Subject: Re: [R] Different varable lengths > > Because of the missing comma. I knew I needed new glasses ! > > On Mon, Apr 30, 2012 a

Re: [R] How to read ANOVA output

2012-05-02 Thread John Kane
Or look for A handbook of Statistical Analyses using R. (Everitt and Holhorn) available on line in pdf format. John Kane Kingston ON Canada > -Original Message- > From: istaz...@gmail.com > Sent: Wed, 2 May 2012 07:01:22 -0400 > To: sydney.ver...@gmail.com > Subject:

Re: [R] Arules and different item columns with same item labelsŠ.

2012-05-02 Thread John Kane
It is not clear what you mean. Can you supply some sample data? Have a look at ?dput for a handy way to supply data. John Kane Kingston ON Canada > -Original Message- > From: lterle...@anadolu.edu.tr > Sent: Tue, 1 May 2012 17:55:25 + > To: r-help@r-project.org &

Re: [R] factor conversion to date/time

2012-05-02 Thread John Kane
Try something like this. Convert the vector to character and grab the first 10 characters then convert to a date. aa <- as.factor("1981-01-02T08:00I") aa <- as.character(aa) aa <- substr(aa, 1, 10) class(b) John Kane Kingston ON Canada > -Original Messa

Re: [R] Identifying the particular X or Y in a sorted list

2012-05-03 Thread John Kane
You do not seem to have suppied either code nor data. Please supply both. John Kane Kingston ON Canada > -Original Message- > From: shankarla...@gmail.com > Sent: Wed, 2 May 2012 22:06:54 -0400 > To: r-help@r-project.org > Subject: [R] Identifying the particular X or Y i

[R] Cannot read or write to file in Linux Ubuntu

2012-05-03 Thread John Kane
DRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base John Kane Kingston ON Canada __

Re: [R] Cannot read or write to file in Linux Ubuntu

2012-05-03 Thread John Kane
Thanks. I had not realsed there were relative paths until Sarah mentioned them. It's working now: see my post to Sarah. John Kane Kingston ON Canada > -Original Message- > From: jdnew...@dcn.davis.ca.us > Sent: Thu, 03 May 2012 09:30:10 -0700 > To: jrkrid...@in

Re: [R] Cannot read or write to file in Linux Ubuntu

2012-05-03 Thread John Kane
header = TRUE) works just fine. I like the idea of staying with absolute paths. I am most appreciative. John Kane Kingston ON Canada > -Original Message- > From: sarah.gos...@gmail.com > Sent: Thu, 3 May 2012 12:29:14 -0400 > To: jrkrid...@inbox.com > Subject: Re: [R] Can

Re: [R] Identifying the particular X or Y in a sorted list

2012-05-03 Thread John Kane
I'm sorry, it's still not clear what you are doing but perhaps this is close? mydata <- data.frame( a = c(1, 2, 3, 4 , 5), b = c(7, 2, 3, 6, 9), c = c(4, 6, 9, 2, 5)) mydata$d <- mydata$b - mydata$c mydata subset(mydata, mydata$d ==max(mydata$d))

Re: [R] Cannot read or write to file in Linux Ubuntu

2012-05-03 Thread John Kane
Thanks Jeff and Sarah. I was thinking mainly of using the base path and paste routine which is something I do in Windows It will take me a while to figrue out relative paths. John Kane Kingston ON Canada > -Original Message- > From: sarah.gos...@gmail.com > Sent: T

Re: [R] Identifying the particular X or Y in a sorted list

2012-05-04 Thread John Kane
simply change the specification in the subset command to >0 John Kane Kingston ON Canada -Original Message- From: shankarla...@gmail.com Sent: Thu, 3 May 2012 16:51:50 -0400 To: jrkrid...@inbox.com Subject: Re: [R] Identifying the particular X or Y in a sor

Re: [R] Cannot read or write to file in Linux Ubuntu

2012-05-05 Thread John Kane
ative paths' just as something that one had to take into account in DOS. I may take a look at R Studio but so far I have been comfortable with a text editor and either RGUI or a terminal. thanks John Kane Kingston ON Canada > -Original Message- > From: j...@surewest.net >

Re: [R] Off-Topic: Crime Statistics Don't Pay

2012-05-05 Thread John Kane
And you don't want to know about some of the other problems with the FBI’s Uniform Crime Reports. IRRC, they are fine for what the FBI intended but a lot of reseachers don't read the data descriptions as closely as they should. John Kane Kingston ON Canada > -Original Messag

Re: [R] Off-Topic: Crime Statistics Don't Pay

2012-05-05 Thread John Kane
And you don't want to know about some of the other problems with the FBI’s Uniform Crime Reports. IRRC, they are fine for what the FBI intended but a lot of reseachers don't read the data descriptions as closely as they should. John Kane Kingston ON Canada > -Original Messag

Re: [R] how to do the concentration-time profiles in R?

2012-05-06 Thread John Kane
() [see ?dput for more information] John Kane Kingston ON Canada > -Original Message- > From: xiaocong@gmail.com > Sent: Sun, 6 May 2012 16:44:10 +0800 > To: r-help@r-project.org > Subject: [R] how to do the concentration-time profiles in R? > > Hi, Dear all, >

Re: [R] Subtracting a matrix 1x28 from a scalar

2012-05-07 Thread John Kane
I'm sorry but where is 28 coming from? It looks to me like you have a vector of length 34 and the result is of length 34. Oh, I see, the 28 and 29 are the indices for the first number on the line not the total length. John Kane Kingston ON Canada > -Original Message- >

Re: [R] Subtracting a matrix 1x28 from a scalar

2012-05-07 Thread John Kane
I'm sorry but where is 28 coming from? It looks to me like you have a vector of length 34 and the result is of length 34. Oh, I see, the 28 and 29 are the indices for the first number on the line not the total length. John Kane Kingston ON Canada > -Original Message- >

Re: [R] convert 400 numeric variables to categorical together

2012-05-08 Thread John Kane
ecific what columns you want to convert to factors and use lapply. Good luck and BTW Rcmdr is a nice GUI but it is much more effiient in the long run to use a command line interface, combinded with a good text editior (Tinn-R is nice for Windows) John Kane Kingston ON Canada > -Or

Re: [R] Axes value format

2012-05-08 Thread John Kane
Quite likely, but we need to know what you are doing and what graphics package you are using. PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. John Kane Kingston ON Canada > -Original Mess

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