Re: [R] Rcolorbrewer Package

2012-08-07 Thread John Kane
install.packages("RColorBrewer") seems to work for me. John Kane Kingston ON Canada > -Original Message- > From: hannah@gmail.com > Sent: Tue, 7 Aug 2012 13:08:11 -0400 > To: r-help@r-project.org > Subject: [R] Rcolorbrewer Package > > Hi all, &

Re: [R] Unable to download R package

2012-08-07 Thread John Kane
Olympics--they are all off partying? John Kane Kingston ON Canada > -Original Message- > From: michael.weyla...@gmail.com > Sent: Tue, 7 Aug 2012 11:03:19 -0500 > To: jdnew...@dcn.davis.ca.us > Subject: Re: [R] Unable to download R package > > I can access the Mac

Re: [R] Overlapping a Plot with Dataframe

2012-08-07 Thread John Kane
What are you actually plotting? John Kane Kingston ON Canada > -Original Message- > From: bioinfo.himan...@gmail.com > Sent: Tue, 7 Aug 2012 05:57:06 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Overlapping a Plot with Dataframe > > Hello Everyone

Re: [R] What is the difference between "probe level data" and "summarized data"

2012-08-07 Thread John Kane
No idea. What are you doing? What packages are you using? What function is (presumably) giving you these results? John Kane Kingston ON Canada > -Original Message- > From: mohammadianalimohammad...@gmail.com > Sent: Tue, 7 Aug 2012 01:12:08 -0700 (PDT) > To: r-help@r

Re: [R] time plot

2012-08-07 Thread John Kane
What graph? Please read the posting guidelines and provide some example data and some code showing what you are doing. John Kane Kingston ON Canada > -Original Message- > From: anand.kara...@gmail.com > Sent: Tue, 7 Aug 2012 12:24:50 +0530 > To: r-help@r-project.org &

Re: [R] Overlay Histogram

2012-08-07 Thread John Kane
rest of the plots. vplayout <- function(x, y) viewport(layout.pos.row = x, layout.pos.col = y) grid.newpage() pushViewport(viewport(layout = grid.layout(2, 1))) print(p1, vp = vplayout(1, 1)) print(p2, vp = vplayout(2, 1)) John Kane Kingston ON Canada > -Original Message- >

Re: [R] Tukey HSD not fully displayed in R console

2012-08-06 Thread John Kane
Would just saving the results onto an object saving it work? >From the help page example summary(fm1 <- aov(breaks ~ wool + tension, data = warpbreaks)) myresults<- TukeyHSD(fm1, "tension", ordered = TRUE) write.table (myresults, file = ksksk) John Kane

Re: [R] ggplot2 boxplot help

2012-08-05 Thread John Kane
Duh, I'm more dyslexic than usual obviously. John Kane Kingston ON Canada > -Original Message- > From: ruipbarra...@sapo.pt > Sent: Sun, 05 Aug 2012 17:07:38 +0100 > To: jrkrid...@inbox.com > Subject: Re: [R] ggplot2 boxplot help > > Hello, > > Wa

Re: [R] ggplot2 boxplot help

2012-08-05 Thread John Kane
+ scale_x_discrete(breaks=c("value_1", "value_2"), labels=c("Sample 1", "Sample 2")) p #### John Kane Kingston ON Canada > -Original Message- > From: alexp

Re: [R] how to put barchart and line chart in the same plot in ggplot2

2012-08-05 Thread John Kane
As far as I understand ggplot2, you cannot do it. ggplot2 is pretty much designed to NOT allow two different sets of data with different y axes in the same plot. Doing this is generally considered very bad practice. I'd suggest looking into perhaps using a 2X1 or X2 grid and plotting the tw

Re: [R] Writing Faroes lettsers in text and plot ?

2012-08-04 Thread John Kane
Depends on your OS probably. I would just add a Faroese keyboard to my Ubuntu setup and switch between my normal keyboard and Faoese as required. John Kane Kingston ON Canada > -Original Message- > From: klausflemlo...@mail.tele.dk > Sent: Fri, 3 Aug 2012 10:08:48 -0700 (PDT

Re: [R] how to identify values from a column of a dataframe, and insert them in other data.frame with the corresponding id?

2012-08-03 Thread John Kane
Hi Nerea, For some reason your post is badl garbled and close to imposible to read. Perhaps you need to check your text encoding? Also to send sample data it is better to use the dput() command. Do dput(myfile) and then paste the results into your email Sorry not to be of more help. John

Re: [R] How to adjust legend in a plot?

2012-08-03 Thread John Kane
Just move the legend. Change topright to x = ? y = ? whatever to find an empty place on the plot. John Kane Kingston ON Canada > -Original Message- > From: mandecent.gu...@gmail.com > Sent: Fri, 3 Aug 2012 00:17:38 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R

Re: [R] Polygon shaded area

2012-08-02 Thread John Kane
Data came through fine. I can never plot a polygon without help but I think you have a data problem. Try this: efinal == efinal2 John Kane Kingston ON Canada -Original Message- From: narillosdesan...@gmail.com Sent: Thu, 2 Aug 2012 16:55:23 +0200 To

Re: [R] Polygon shaded area

2012-08-02 Thread John Kane
our email. Readers can directly paste the file into their R console and see exactly what your data is. John Kane Kingston ON Canada FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family! Visit h

Re: [R] If/then statement, if in a list then

2012-07-30 Thread John Kane
if(cond) expr if(cond) cons.expr else alt.expr Also see ?ifelse John Kane Kingston ON Canada > -Original Message- > From: bunnylove...@optonline.net > Sent: Mon, 30 Jul 2012 05:55:34 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] If/then statement, if in a l

Re: [R] Turning off continuation prompt?

2012-07-30 Thread John Kane
If I understand the question correctly the answer is probably not to type anything at the R command line. A good editor or interface is a better approach http://en.wikipedia.org/wiki/R_%28programming_language%29#Interfaces John Kane Kingston ON Canada > -Original Message- >

Re: [R] Convert variable to STring

2012-07-30 Thread John Kane
Can you give us an example of what you mean by the functions listed below. Otherwise something like this seems to work xx <- 1 :4 x1 <- as.character(xx) mat <- matrix(1:12, nrow=3) John Kane Kingston ON Canada > -Original Message- > From: ala...@yahoo.com > Sent

Re: [R] Appending the Column names

2012-07-29 Thread John Kane
You cannot have two sets of column names in a data.frame You can do this rbind(X, Y) Summary G Y R 1 Acc 12 12 13 2 Bcc 11 14 15 3 Ccc 13 15 16 4 Acc 10 11 12 5 Bcc 13 12 11 6 Ccc 11 16 20 John Kane Kingston ON Canada > -Original Message- >

Re: [R] Coloring Counties in a State Map

2012-07-29 Thread John Kane
you have already developed in trying to do this. John Kane Kingston ON Canada > -Original Message- > From: italianoperstrani...@hotmail.it > Sent: Sat, 28 Jul 2012 13:56:18 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Coloring Counties in a State Map > > I

Re: [R] Separating Columns in Excel Export from R

2012-07-27 Thread John Kane
Yes just a bit picky. While it would not have caught this problem a good editor with highlighting (Tinn-R in Windows, gedit or geany? in Linux can really help. Try googling for a discusson of editors for R. There was one a few month ago I think John Kane Kingston ON Canada > -Origi

Re: [R] On Reproducible Code

2012-07-27 Thread John Kane
h assumptions are false. People are particular well >> trained to skip over boilerplate text at the bottom of emails. > > One day the list owner will subtly change the boilerplate text at the > bottom of R-help emails and nobody will notice. > Not 1 necessarily so. I glance at it oc

Re: [R] Separating Columns in Excel Export from R

2012-07-27 Thread John Kane
I think you have a type: Try "\t" John Kane Kingston ON Canada > -Original Message- > From: watson...@hotmail.com > Sent: Fri, 27 Jul 2012 09:30:34 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Separating Columns in Excel Export from R > > Hell

Re: [R] On Reproducible Code

2012-07-27 Thread John Kane
I'd vote for that! It would probably bug the blazes out of experienced users but the time savings in getting a newbie to actually supply enough information so that someone can, at least, try to answer the question would be well worth it. John Kane Kingston ON Canada > -Original

Re: [R] On Reproducible Code

2012-07-27 Thread John Kane
> -Original Message- > From: j...@bitwrit.com.au > Sent: Fri, 27 Jul 2012 19:21:36 +1000 > To: dcarl...@tamu.edu > Subject: Re: [R] On Reproducible Code > > On 07/26/2012 01:50 AM, David L Carlson wrote: >> We often refer requesters to the Posting Guide and chide them for not >> reading

Re: [R] package memisc: recode examples

2012-07-26 Thread John Kane
ge the status quo. It becomes fairly obvious after the first few imbroglios. On the other hand as they now teach passive sentence structure is harder to understand that postive, so perhaps: Objects x,yz in package A mask objects x,y z in package B? John Kane Kingston ON Canada > -

Re: [R] Error Bars ggplot2

2012-07-26 Thread John Kane
.1,2.2,5)) myplot<-ggplot(dat1, aes(spd, r, colour = spd)) + geom_errorbar(aes(ymin=3, ymax=5), width=.1) + geom_point() + coord_flip() John Kane Kingston ON Canada > -Original Message- > From: adamjgabb...@gmail.com > Sent: Thu, 26 Jul 2012 09:03:44 -0400 > To: r-help@r-project.

Re: [R] Adding "%" symbol in middle Row

2012-07-26 Thread John Kane
Something as simple as dat1[2,2] <- "3%" where your data is in a data.frame called dat will change 3 to 3% it but it changes everything in that column to character if it was numeric. str(dat1) John Kane Kingston ON Canada > -Original Message- > From: sailes

Re: [R] Variables in a Tabular form. easily saved in a txt file

2012-07-26 Thread John Kane
ot;City3") hds <- c("Postal.Code", "Superb") mat <- matrix( c(postal, superb), nrow=3) colnames(mat) <- hds rownames(mat) <- cities mat dat1 <- data.frame(cities, postal, superb) names(dat1) <- c("city", "postal.code", sup

Re: [R] scale_y_logit not present in ggplot2 0.9?

2012-07-26 Thread John Kane
I think it has been moved to the scales package but I've never used it so I don't know the syntax. John Kane Kingston ON Canada > -Original Message- > From: fjpcaball...@gmail.com > Sent: Thu, 26 Jul 2012 07:41:58 -0400 > To: r-help@r-project.org > Subje

Re: [R] Passing arguments to SQL Query in R

2012-07-26 Thread John Kane
Score"), class = "data.frame", row.names = c(NA, -16L)) # R basic aggregate(Score ~ Name, mean, data = mydata) library(reshape2) dcast(mydata, Name ~ . , mean) library(plyr) ddply(mydata, .(Name), summarize, Mean = mean(Score)) library(data.table) DT <- data.table(myd

Re: [R] How to do the same thing for all levels of a column?

2012-07-25 Thread John Kane
#x27;s not just me reading the code. If you run: md1 <- melt(mydata, id = "Time_zero", variable.name="xvars", value.name="aminos") ddply(md1, .(xvars, aminos), summarise, sum = sum(Time_zero)/time0total) I think it will show what i

Re: [R] creating Pivot

2012-07-25 Thread John Kane
# note file name is xx. library(reshape2) dcast(xx, name ~ color, value.var = "values") John Kane Kingston ON Canada > -Original Message- > From: saileshchowd...@gmail.com > Sent: Tue, 24 Jul 2012 21:41:19 -0700 (PDT) > To: r-help@r-project.org > Subject: [

Re: [R] Boxplot graphic

2012-07-25 Thread John Kane
PLEASE do read the posting guide. You really need to supply some sample data and the code you are using. We can make guesses about what you are doing but it is much easier to actually look at the data and code. Please use dput() ( see ?dput) to supply some sample data. John Kane Kingston ON

Re: [R] Simple reshape problem I am completely missing

2012-07-24 Thread John Kane
Looks like it. thanks Now all I have to do is figgure out how to get rid of all the missing combos. Oh well another dat thanks John Kane Kingston ON Canada > -Original Message- > From: smartpink...@yahoo.com > Sent: Tue, 24 Jul 2012 10:45:18 -0700 (PDT) > To: jrkrid.

[R] Simple reshape problem I am completely missing

2012-07-24 Thread John Kane
3616366, 0.951669704638363, 0.89764100023006, 0.0850868034048879, 0.0172721963650521, 0.951669704638363, 0.0483302953616366, 0.963243491956749, 0.0367565080432513, 0.89764100023006, 0.0540287044083034, 0.0483302953616366, 0.982727803634948, 0.0172721963650521 )), .Names = c("gro

Re: [R] How to do the same thing for all levels of a column?

2012-07-24 Thread John Kane
time0total = sum(myfile[,2]) mydata <- myfile[, 2:10] md1 <- melt(mydata, id = "Time_zero") ddply(md1, .(variable, value), summarise, sum = sum(Time_zero)/time0total) John Kane Kingston ON Canada -Original Message- From: z...@cornell.edu Sent:

Re: [R] Hire person to convert R code to SAS

2012-07-24 Thread John Kane
rt it to R. John Kane Kingston ON Canada > -Original Message- > From: surg...@mac.com > Sent: Mon, 23 Jul 2012 11:50:48 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] Hire person to convert R code to SAS > > interesting idea, the problem is that I have a

Re: [R] R doesn't recognize R_HOME value

2012-07-24 Thread John Kane
Can we have a Window subset of fortunes? John Kane Kingston ON Canada > -Original Message- > From: kirkrflem...@hotmail.com > Sent: Mon, 23 Jul 2012 14:06:48 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] R doesn't recognize R_HOME value > I do

Re: [R] How to do the same thing for all levels of a column?

2012-07-24 Thread John Kane
. Something like dput(head(mydata)) should be fine. Just copy and paste the output into your email. Welcome to R. I think you will like it. John Kane Kingston ON Canada > -Original Message- > From: z...@cornell.edu > Sent: Mon, 23 Jul 2012 18:01:11 -0400 > To: r-help@r

Re: [R] Creating panel data

2012-07-23 Thread John Kane
(0,68.5)) dd <- melt(x, id= c("id", "Event1", "Event2"), value.name="year.quarter" ) dd1 <- subset(dd, dd[, 5] != 0 ) dd1 <- dd1[ , c(1,2,3,5)] John Kane Kingston ON Canada > -Original Message- > From: r...@jp.pair.co

Re: [R] rhsape2 bug?

2012-07-22 Thread John Kane
Check and see if you have reshape loaded as well. I had a somewhat similar problem (R2.13 ?) and realised that reshape was masking reshape2 John Kane Kingston ON Canada > -Original Message- > From: dwarnol...@suddenlink.net > Sent: Sat, 21 Jul 2012 16:06:11 -0700 (PDT) >

Re: [R] Creating Multiple Repeating samples and Cross Correlating them.

2012-07-20 Thread John Kane
eplace = TRUE) } mymat John Kane Kingston ON Canada > -Original Message- > From: baile...@ohsu.edu > Sent: Thu, 19 Jul 2012 14:17:43 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Creating Multiple Repeating samples and Cross Correlating > them. > > I

Re: [R] Crosstab with Average and Count

2012-07-20 Thread John Kane
z, na.rm = TRUE), mean = mean(z, na.rm = TRUE), count = length(z))) John Kane Kingston ON Canada > -Original Message- > From: viora...@gmail.com > Sent: Fri, 20 Jul 2012 03:30:16 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Crosstab with Average and C

Re: [R] qplot/ggplot

2012-07-20 Thread John Kane
I think we need some raw data. Have a look at ?dput for a way to supply it. It might help if you supplied some sample code of what you have tried. "I want a line plot" is not particularly helpful. John Kane Kingston ON Canada > -Original Message- > From: anamika...@

Re: [R] Entering Data Files

2012-07-19 Thread John Kane
t;, header = TRUE) in Windows. Note that you can do either Linux style / or use Windows \ but if so you must escape them so the path would be "C:\\mydata\\ages.csv". Hope this helps. John Kane Kingston ON Canada > -Original Message- > From: dwarnol...@suddenlink.ne

Re: [R] Upgrading on Ubuntu from 2.11.1 to 2.15.1

2012-07-19 Thread John Kane
gt; Subject: Re: [R-sig-Debian] Attempting to update from R 2.14 to 2.15 on > Ubuntu > > > > On 06/12/2012 02:42 PM, John Kane wrote: >> R-SIG-Debian >> >> I am very new to Linux so I probably am doing something stupid but I >> cannot seem to update to

Re: [R] cenbox(): Changing Default x-axis Group Labels

2012-07-19 Thread John Kane
Code? Sample data? John Kane Kingston ON Canada > -Original Message- > From: rshep...@appl-ecosys.com > Sent: Wed, 18 Jul 2012 14:30:24 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] cenbox(): Changing Default x-axis Group Labels > >I've looked a

Re: [R] alternate tick labels and tick marks with lattice xyplot

2012-07-18 Thread John Kane
Oh, I clearly misunderstood what you were doing there. I don't know anything about Manhattan plots but a quick google for "manhattan plot r package" turns up a number of items so the type of plot you want may already exist. Sorry to not be of more help. John Kane Kin

Re: [R] NA instead of time stamp

2012-07-17 Thread John Kane
. John Kane Kingston ON Canada > -Original Message- > From: yolande@gmail.com > Sent: Tue, 17 Jul 2012 10:48:28 -0400 > To: r-help@r-project.org > Subject: [R] NA instead of time stamp > > I was wondering why I get instead of the timestamp in the > following.

Re: [R] as.xts

2012-07-16 Thread John Kane
Yolande, Attached files are usually deleted from the r-help list and I see no sign of your file. You can use the function dput() to output the your file in a format that you can paste into your email and which other readers can paste into R and use. See ?dput for more information. John Kane

Re: [R] HLOOKUP in R

2012-07-16 Thread John Kane
My quick read of the HVLOOLUP text suggests that an exact match is what is done in Excel or other spreadsheets. But then, I've never used it. I get the impression is often used for things like price lookups. John Kane Kingston ON Canada > -Original Message- >

Re: [R] HLOOKUP in R

2012-07-16 Thread John Kane
1:10, targ <- c(11:20))) xx <- 4 hvlook <- mda[2 , match(1, df1[, xx]) ] hvlook John Kane Kingston ON Canada > -Original Message- > From: santosh.srini...@gmail.com > Sent: Sun, 15 Jul 2012 04:56:30 -0700 (PDT) > To: r-help-arch...@googlegroups.com > Sub

Re: [R] Imposing more than one condition to if

2012-07-15 Thread John Kane
No idea of how to do what you want but your data set is not working. I think that you want x= c(1:24) day= rep(1:30, each=10) time= sample(x, 300, replace= T) light= rep(c(20,10,6,0,0,0,0,0,8,20), 30) d=data.frame(day,time,light) n= length(day) John Kane Kingston ON Canada > -Origi

Re: [R] variable (column) in a data frame

2012-07-15 Thread John Kane
This seems more or less correct to me. 1> sum(df$a==1) [1] 1 1> sum(df$a==2) [1] 1 1> sum(df$aaa==2) [1] 0 There is no df$aaa so the length is 0 which is what I think you are asking. What am I missing? John Kane Kingston ON Canada > -Original Message- >

Re: [R] Side by side strip charts

2012-07-13 Thread John Kane
try something like abline(h=1.9) John Kane Kingston ON Canada > -Original Message- > From: dwarnol...@suddenlink.net > Sent: Fri, 13 Jul 2012 09:54:35 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] Side by side strip charts > > OK, got this far: &

Re: [R] plot only a same variable timing graph

2012-07-12 Thread John Kane
?subset John Kane Kingston ON Canada > -Original Message- > From: jubil...@live.com.sg > Sent: Wed, 11 Jul 2012 20:53:51 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] plot only a same variable timing graph > > hi all. > for example : > > Table 1 v

Re: [R] plot graph by first letter

2012-07-12 Thread John Kane
I really am not sure of the question but perhaps ?order for a start? John Kane Kingston ON Canada > -Original Message- > From: jubil...@live.com.sg > Sent: Thu, 12 Jul 2012 01:15:26 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] plot graph by first letter > &g

Re: [R] A simple simulation question

2012-07-12 Thread John Kane
I think that you have the statements out of order and I know that you are lacking the last ) to match the replicate( Try this" replicate(100, { x=rep(1:10,10) y=rnorm(100,x,5) plot(y~x) abline(lm(y~x)) }) John Kane Kingston ON Canada > -Original Message- > From:

Re: [R] how to make plot lines thicker

2012-07-09 Thread John Kane
?par and have a look at lwd John Kane Kingston ON Canada > -Original Message- > From: jenkere...@gmail.com > Sent: Mon, 9 Jul 2012 10:11:32 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] how to make plot lines thicker > > I am trying to make the lines thic

Re: [R] Splitting a character vector.

2012-07-09 Thread John Kane
Right, I see it now. Thanks. Who knows in another 100 years I may understand regex. John Kane Kingston ON Canada > -Original Message- > From: smartpink...@yahoo.com > Sent: Sat, 7 Jul 2012 16:19:54 -0700 (PDT) > To: jrkrid...@inbox.com > Subject: Re: [R] Splitting a c

Re: [R] a fortune?

2012-07-09 Thread John Kane
ooohhh! John Kane Kingston ON Canada > -Original Message- > From: ted.hard...@wlandres.net > Sent: Sun, 08 Jul 2012 21:07:09 +0100 (BST) > To: r-help@r-project.org > Subject: Re: [R] a fortune? > > Should this not be attributed to DescaRtes? > > Ted. &

Re: [R] Splitting a character vector.

2012-07-08 Thread John Kane
Works perfectly. Thank you very much indeed. John Kane Kingston ON Canada > -Original Message- > From: dwinsem...@comcast.net > Sent: Sat, 7 Jul 2012 21:45:58 -0400 > To: jrkrid...@inbox.com > Subject: Re: [R] Splitting a character vector. > > > On Jul 7, 201

Re: [R] Splitting a character vector.

2012-07-07 Thread John Kane
I think I'm geting it a bit. Anyway time to shut down and have a beer. Life will be much nice tomorrow or Monday when I get back to cleaning up the data from that spreadsheet. Many thanks and have a good weekend. John Kane Kingston ON Canada > -Original Message- > From

Re: [R] Splitting a character vector.

2012-07-07 Thread John Kane
Ah, I think Mark may have it. See my earlier post. Why the space? John Kane Kingston ON Canada > -Original Message- > From: ruipbarra...@sapo.pt > Sent: Sat, 07 Jul 2012 23:12:46 +0100 > To: marklee...@gmail.com > Subject: Re: [R] Splitting a character vector. > >

Re: [R] Splitting a character vector.

2012-07-07 Thread John Kane
How totaly obvious once you tell me! I would have spend days trying to figure it out. I think I have a total mental block on regex and their derivatives. Thanks very much. John Kane Kingston ON Canada > -Original Message- > From: ruipbarra...@sapo.pt > Sent: Sat, 07 Jul 2

Re: [R] Splitting a character vector.

2012-07-07 Thread John Kane
Thanks Jeff. I actually had that figured out after a good hour of pounding my head against the wall but I still could not seem to get the syntax correct. I think I misunderstand strpsplt() just enough to keep making dumb mistakes. John Kane Kingston ON Canada > -Original Mess

Re: [R] Splitting a character vector.

2012-07-07 Thread John Kane
No sorry Rui, In the expression result <- strsplit(sub(close.par, "", dd1), open.par) there is close.par, ''", open.par I probably am just blind but I don't understand what it is doing. John Kane Kingston ON Canada > -Original Message- > Fro

Re: [R] Splitting a character vector.

2012-07-07 Thread John Kane
Thanks Rui It works perfectly so far on the test and real data. The annoying thing is that I had tried , or thought I'd tried the open.par format and keep getting an error. It looks like I had failed to add the '''', in the term. What is it doing? Joh

[R] Splitting a character vector.

2012-07-07 Thread John Kane
ding the function or don't know how to escape a "(" properly in an effort to at least get "XXY" "(mat harry)" Any pointers would be appreciated Thanks John Kane Kingston ON Canada FREE 3D MARIN

Re: [R] Error in plot.new() : figure margins too large

2012-07-06 Thread John Kane
Your code works okay in a plan R terminal. It may be an Rstudio problem or perhaps you already have a graphics device open and are trying to draw into it? John Kane Kingston ON Canada > -Original Message- > From: khar...@lbl.gov > Sent: Fri, 6 Jul 2012 10:39:41 -0700 >

Re: [R] Poisson Ridge Regression

2012-07-06 Thread John Kane
Probabaly not since you do not tell us what the problem is. Please read the posting notes at the bottom of this email John Kane Kingston ON Canada > -Original Message- > From: khatriumes...@gmail.com > Sent: Fri, 6 Jul 2012 21:13:32 +0530 > To: r-help@r-project.org &

Re: [R] Tables extraction in R ?

2012-07-06 Thread John Kane
Have a look at the xtables package. I have not used it in some time but I think it may do what you want. A google search "R statistics xtables" should bring up some useful information on this. John Kane Kingston ON Canada > -Original Message- > From: sggk...@gmail.co

Re: [R] how to do a graph with tree different colors??

2012-07-06 Thread John Kane
like. I'm sorry I cannot be of more immediate help. John Kane Kingston ON Canada -Original Message- From: denissearchun...@yahoo.com.mx Sent: Fri, 6 Jul 2012 06:01:42 -0700 (PDT) To: jrkrid...@inbox.com Subject: Re: [R] how to do a graph with tree different c

Re: [R] reshape2 errors on data frame

2012-07-05 Thread John Kane
It would be very helpful to have some sample data to play with. str() shows the structure of the data set but it is not the data. Something like dput(head(100)) would probably be enough. John Kane Kingston ON Canada > -Original Message- > From: rshep...@appl-ecosys.com >

Re: [R] EM algorithm to find MLE of coeff in mixed effects model

2012-07-05 Thread John Kane
I don't believe that R-help permits pdf files. A useful workaround is to post it to a file hosting site like MediaFire and post the link here. John Kane Kingston ON Canada > -Original Message- > From: jimmycl...@gmail.com > Sent: Wed, 4 Jul 2012 22:56:02 -0400

Re: [R] how to analyse non parametric test

2012-07-05 Thread John Kane
Please read the posting guidelines. So far we have no idea of what you are doing or how you are doing it. John Kane Kingston ON Canada > -Original Message- > From: anilgv...@gmail.com > Sent: Thu, 5 Jul 2012 15:11:20 +0530 > To: r-help@r-project.org > Subject: [R] how

Re: [R] ggplot2: legend

2012-07-04 Thread John Kane
I played around with this for a while with no success at all. I'd suggest posting the question on the ggplot2 newsgroup in Google Groups John Kane Kingston ON Canada > -Original Message- > From: thorn.tha...@rdls.nestle.com > Sent: Tue, 3 Jul 2012 18:50:52 +0200

Re: [R] Help! Please recommend good books/resources on visualizing data and understanding multivariate relations...

2012-07-04 Thread John Kane
One basic and very good one is Cleveland, W. S. (1985). The Elements of Graphing Data. Wadsworth, Inc. John Kane Kingston ON Canada > -Original Message- > From: comtech@gmail.com > Sent: Tue, 3 Jul 2012 18:12:00 -0500 > To: r-h...@stat.math.ethz.ch > Subject: [

Re: [R] How do you impute missing data using Latent Class Model (poLCA package)

2012-07-04 Thread John Kane
John Kane Kingston ON Canada > Who are the authors of the R package poLCA. >From the R CRAN site Author: Drew Linzer, Jeffrey Lewis. Maintainer: Drew Linzer FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins,

Re: [R] carpet plots

2012-07-03 Thread John Kane
Anything here that might help http://learnr.wordpress.com/2010/01/26/ggplot2-quick-heatmap-plotting/ John Kane Kingston ON Canada > -Original Message- > From: joeclar...@hotmail.com > Sent: Mon, 2 Jul 2012 13:21:25 -0700 > To: mueller.eisb...@googlemail.com, r-help@r

Re: [R] how to do a graph with tree different colors??

2012-07-03 Thread John Kane
Any sample data for us to work with? See ?dput for a good method of supplying sample data. John Kane Kingston ON Canada > -Original Message- > From: denissearchun...@yahoo.com.mx > Sent: Mon, 2 Jul 2012 14:04:53 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] ho

Re: [R] Code scatter plot data from matrix with 3rd column

2012-07-03 Thread John Kane
( z))) + geom_point() John Kane Kingston ON Canada > -Original Message- > From: kbw1...@yahoo.com > Sent: Mon, 2 Jul 2012 13:31:36 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Code scatter plot data from matrix with 3rd column > > Hello > > I am lo

Re: [R] Decrete value check in a matrix

2012-07-02 Thread John Kane
Glad it works. So far we seem to have at least three ways to do it. R is amazing! John Kane Kingston ON Canada > -Original Message- > From: antony.akk...@ge.com > Sent: Mon, 2 Jul 2012 06:04:03 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] Decrete value ch

Re: [R] ggplot: dodge positions

2012-07-02 Thread John Kane
stant' whisker for that boxplot. So I looks to me as if in my version of the plot it is what you want. Any change that I can email directly to you and get an attactment through? John Kane Kingston ON Canada > -Original Message- > From: thorn.tha...@rdls.nestle.com > Sent: Mo

Re: [R] ggplot: dodge positions

2012-07-02 Thread John Kane
have no idea how the x axis points on the boxplot are determined. It may be relatively clear in the code but I don't really have the knowledge to ferret it out. Sorry that I cannot be of more help. John Kane Kingston ON Canada > -Original Message- > From: thorn.tha...

Re: [R] geom_boxplot

2012-07-02 Thread John Kane
Thanks Petr, I suppose this means I have to reread that set of changes again. I think I noticed it and promptly forgot it. John Kane Kingston ON Canada > -Original Message- > From: petr.pi...@precheza.cz > Sent: Mon, 2 Jul 2012 10:41:20 +0200 > To: jrkrid...@inbox.com &

Re: [R] ggplot: dodge positions

2012-07-02 Thread John Kane
Can you expand a bit on what is wrong with the dodge option? From what I see it looks lovely witht the points exactly lined with the boxplots for each group but perhaps I don't understand exactly what you want . John Kane Kingston ON Canada > -Original Message- > From

Re: [R] Decrete value check in a matrix

2012-07-02 Thread John Kane
b = c(2.4, 4, 6, 6.7)) ww <- data.frame( is.wholenumber(aa)) cbind(aa, ww) John Kane Kingston ON Canada > -Original Message- > From: antony.akk...@ge.com > Sent: Mon, 2 Jul 2012 03:04:48 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Decrete value check in a ma

Re: [R] geom_boxplot

2012-07-01 Thread John Kane
e on the internet and search results usually are not too bad. You may also want to subcribe to the ggplot2 group on google groups. Best wishes John Kane Kingston ON Canada > -Original Message- > From: hannah@gmail.com > Sent: Sun, 1 Jul 2012 08:39:20 -0400 > To: r-he

Re: [R] Help

2012-06-30 Thread John Kane
is unattach it( see above|), and then upgrade both reshape2 and ggplot to to the most recent versions and see what happens running the code from my first post. Best of luck. John Kane Kingston ON Canada > -Original Message- > From: hannah@gmail.com > Sent: Sat, 30 Jun

Re: [R] Help

2012-06-30 Thread John Kane
proto_0.3-9.2 RColorBrewer_1.0-5 scales_0.2.1 [13] stringr_0.6 John Kane Kingston ON Canada -Original Message- From: hannah@gmail.com Sent: Fri, 29 Jun 2012 21:31:55 -0400 To: jrkrid...@inbox.com Subject: Re: [R] Help Hi Petr, David and John, Thank

Re: [R] Help

2012-06-29 Thread John Kane
; ) mdata <- melt(mydata) p <- ggplot( mdata , aes(variable, value , colour = variable )) + geom_boxplot() + facet_grid( group ~ .) p == John Kane Kingston ON Canada > -Original Message- > From: hanna

Re: [R] qplot and colors (Please Help)

2012-06-28 Thread John Kane
Something like this may do it. http://stackoverflow.com/questions/6919025/how-to-assign-colors-to-categorical-variables-in-ggplot2-that-have-stable-mappin John Kane Kingston ON Canada > -Original Message- > From: david_ly...@yahoo.com > Sent: Wed, 27 Jun 2012 09:07:53 -0700 (

Re: [R] How can I make a list using aggregate function?

2012-06-28 Thread John Kane
data? We really should see some sample data. See ?dput for a way to supply some. John Kane Kingston ON Canada > -Original Message- > From: sureshmallika...@gmail.com > Sent: Thu, 28 Jun 2012 01:58:30 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] How can I ma

[R] ggplot2 ordering in a faceted dotplot.

2012-06-27 Thread John Kane
1.2-4digest_0.5.2 grid_2.15.0 [5] labeling_0.1 MASS_7.3-18memoise_0.1munsell_0.3 [9] proto_0.3-9.2 RColorBrewer_1.0-5 stringr_0.6tools_2.15.0 John Kane Kingston ON Canada #=

Re: [R] plotting two histograms on one plot with hist function

2012-06-27 Thread John Kane
legend("topleft", c("Dataset 1","Data set 2"), cex=0.6,bty="n", fill=c("Red","Green")) Thanks again for the help! From: John Kane [mailto:jrkrid...@inbox.com] Sent: 26 June 2012 23:27 To: ilai C

Re: [R] plotting two histograms on one plot with hist function

2012-06-26 Thread John Kane
Oh, I had not thought of it in those terms. It does make sense now. John Kane Kingston ON Canada -Original Message- From: ke...@math.montana.edu Sent: Tue, 26 Jun 2012 10:57:31 -0600 To: jrkrid...@inbox.com Subject: Re: [R] plotting two histograms on one plot

Re: [R] plotting two histograms on one plot with hist function

2012-06-26 Thread John Kane
Why not just plot the two histograms on the same scale in a 2 panel plot? John Kane Kingston ON Canada > -Original Message- > From: mb...@sun.ac.za > Sent: Tue, 26 Jun 2012 15:24:55 +0200 > To: r-help@r-project.org > Subject: [R] plotting two histograms on one plot wit

Re: [R] graph displays

2012-06-26 Thread John Kane
ue, fill= Source )) + geom_bar(position = "dodge") + scale_y_continuous(" Scale Values") + scale_x_discrete("X values") + opts( title = "Graphing Exercise") p

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