Hi Steve,
I "think" what you want to do is get a unique time-date from the first two
columns.
Try something like this: (changing the file name obviously.
mydate should give you a time and date format that you can add to the existing
data.frame.
mydata <- read.table("C:/rdata/dates.junk.csv
I don't think you can do this
precipitation!="NA")
have a look at ?is.na
--- On Tue, 5/18/10, stephen sefick wrote:
> From: stephen sefick
> Subject: [R] Function that is giving me a headache- any help appreciated
> (automatic read )
> To: r-help@r-project.org
> Received: Tuesday, May 18, 20
This is not enough information to let us give a good example but perhaps ?lines
or ?points might help?
Example
aa <- 1:5
bb <- 1:5
cc <- c(1.5,2.5,3.5,4.2,4.4)
plot(aa,bb)
lines(aa,cc,col='red')
points(aa,cc, col="blue")
--- On Sat, 5/22/10, khaz...@ceremade.dauphine.fr
wrote:
> From: kha
The Prostatic_Neoplasm-miRNAs.DiseaseTargets.xls file seems to be an HTML
table and seems to open with no problem in OpenOffice.org Writer/Web. OOo 3.2.0
when opened from within OOOo.
At a guess it is some collection of PubMed references.
I don't know if that's any use but it's a nice table
It looks like superpose.eb is someone's function and not in a package.
https://stat.ethz.ch/pipermail/r-help/2002-November/027299.html
--- On Thu, 6/3/10, Rosario Garcia Gil wrote:
> From: Rosario Garcia Gil
> Subject: [R] (no subject)
> To: "r-help@r-project.org"
> Received: Thursday, June 3
What does the text look like?
--- On Thu, 6/3/10, dhanush wrote:
> From: dhanush
> Subject: [R] import text file into R
> To: r-help@r-project.org
> Received: Thursday, June 3, 2010, 7:32 AM
>
> can anyone tell me how to import a text file in R? the text
> file I want to
> import is a large
# A very quick example of how to draw an arrow on a graph.
plot(1:10)
text(2,5, "Point 5 ", cex=.8)
arrows(3,5, 4.5, 5)
--- On Thu, 6/3/10, Roslina Zakaria wrote:
> From: Roslina Zakaria
> Subject: [R] horizontal and vertical line with arrow in a plot
> To: r-help@r-project.org
> Received: Thu
The first thing we need to know is what "errbar" are you using?
There are at least two, on in the Hmisc package and one in sfsmisc.
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained,reproducible code.
I'm not sure what y
?var perhaps
--- On Sat, 6/5/10, Adel ESSAFI wrote:
> From: Adel ESSAFI
> Subject: Re: [R] variation
> To: r-help@r-project.org
> Received: Saturday, June 5, 2010, 7:57 AM
> 2010/6/5 Jannis
>
> > What exactly do you mean by "variation"? As I
> understand it, this term is a
> > broad term for
m<-matrix(seq(1,48),nrow=6,byrow=T)
as.vector(t(m))
gives me the correct result.
Any chance you may have already transformed m ?
--- On Sat, 6/5/10, steven mosher wrote:
> From: steven mosher
> Subject: Re: [R] Matrix to Vector
> To: "Henrique Dallazuanna"
> Cc: r-help@r-project.org
> Rece
Why?
See ?seq
seq(0,1,.01)
--- On Wed, 6/9/10, suman dhara wrote:
> From: suman dhara
> Subject: [R] for loop incremented by 0.01
> To: r-h...@stat.math.ethz.ch
> Received: Wednesday, June 9, 2010, 12:30 PM
> Sir,
> I want to use a for loop which will be incremented by 0.01
> in 0 to 1.
> P
Your example does not seem to accurately mirror your data since there are no
variable column counts.
If the data is not confidential, it might be a good idea to load a sample of it
somewhere were list readers can get it and examine the actual file layout.
[url=http://www.mediafire.com/][b]Medi
--- On Thu, 2/17/11, John Kane wrote:
> From: John Kane
> Subject: RE: [R] Variable length datafile import problem
> To: "Ingo Reinhold"
> Received: Thursday, February 17, 2011, 5:54 AM
> Generally most of the gurus are in
> this list. Hopefully someone wi
old
> Subject: RE: [R] Variable length datafile import problem
> To: "John Kane" , "r-help@r-project.org"
>
> Received: Friday, February 18, 2011, 3:16 AM
> Hi John,
>
> seems there is no easy way. I'll just precondition it with
> AWK as des
I am not aware of one, bu I don`t know that much. You an change the vector to
a data.frame but it could introduce complications.:)
Example:
===
vec <- 1:10
df1 <- data.frame(vec)
df1
--- On Tue, 2/22/11, D Kelly O'Day wrote:
> From: D Kelly O'Day
> Subject: Re: [R] Calculate a mean for several months for several years
> To: r-help@r-project.org
> Received: Tuesday, February 22, 2011, 12:21 AM
>
> Pete
>
> The original question "I would like to calculate the
> average of
I seem to be running into the same problem reported in
https://stat.ethz.ch/pipermail/r-help/2010-November/258265.html
I cannot seem to transform a dataset from long to wide using reshape2.
Clearly I am missing something very simple but a look at the manual and the
reshape paper in JSS does not
form a dataset from long to wide using reshape2
> To: "John Kane"
> Cc: "R R-help"
> Received: Saturday, February 26, 2011, 2:24 PM
> John -
> In the dat data frame, there is exactly one
> observation
> for each Subject/Item combination, so it's clear how
Sure why not?
You do realize, do you not that no one has the slightest idea of what you are
doing?
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--- On Tue, 3/1/11, danielepippo wrote:
> From
Did you get a reply on this?
We really need to see your code and some sample data.
Have a look at ?dput tko supply some data.
At the moment it looks like R is not recognizing the dara set. If ls( libts
the dataset, are you using mydara$excat
--- On Wed, 3/2/11, Laura Clasemann wrote:
> Fr
I think we need a sample of the orginal data or reasonable facsimile to get an
idea of what you are doing.
Have a look at ?dput as a way to provide the data in a handy format.
--- On Thu, 3/10/11, Muzna Alvi wrote:
> From: Muzna Alvi
> Subject: [R] Reshape, melt and cast query
> To: r-help@r-
Isn't reshape sun at first :).
The not obvious thing is that you don't need to cast anything. All you need is
the proper melt command (and a final sort if you want the table you have).
=
library(reshape)
xx = data.frame(country
It may be a stupid question but have you loaded reshape?
library(reshape)
?melt
--- On Sat, 3/12/11, Deepika wrote:
> From: Deepika
> Subject: [R] how to use melt cast commands in R in window7
> To: r-help@r-project.org
> Received: Saturday, March 12, 2011, 3:45 AM
> Hi,
> I have installed R
Is this of any use? http://tolstoy.newcastle.edu.au/R/help/06/04/25821.html
--- On Sat, 3/12/11, Allan Kamau wrote:
> From: Allan Kamau
> Subject: [R] Drawing a circle on an existing graph.
> To: r-help@r-project.org
> Received: Saturday, March 12, 2011, 3:08 AM
> I would like to draw a circle
>> ability to plot a
> >>>> circle on an already existing graph by
> simply providing the
> >>>> xy
> >>>> coordinates for it's centre and the
> radius.
> >>>>
> >>>> I am also looking for a way to obtain x,y
Hi Maria,
I think we need some sample data and code to really be ablo to help.
in the meantime have have a look at ?par for general plotting info.
--- On Sun, 3/13/11, Lathouri, Maria wrote:
> From: Lathouri, Maria
> Subject: [R] how to change the margins of a plot area
> To: "r-help@r-project
I am not sure about this but I don't see how a melt command helps.
See what
z = dcast(x, I ~ V, mean)
gives you.
--- On Sun, 3/13/11, Jim & Carolyn Watkins wrote:
> From: Jim & Carolyn Watkins
> Subject: [R] A basic question about reshape2
> To: r-help@r-project.org
> Received: Sunday, March
Without seeing your code it could be just about anything.
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained reproducible code.
--- On Mon, 3/21/11, Jim Silverton wrote:
> From: Jim Silverton
> Subject: Re: [R] Part of
--- On Wed, 3/23/11, Greg Snow wrote:
> From: Greg Snow
> Subject: Re: [R] stacked bar plot
> To: "Chandra Salgado Kent" ,
> "r-help@r-project.org"
> Also look at the ggplot2 package, it may do the summing as
> part of the plot call and probably does not need the reshape
> step.
If I'm r
For some reason I thought that I could read some text into dates without a
separator? Am I wrong?
Examples
Works, it appears
ccc <- c("2011-04-07", "1989-10-12")
x <- strptime(ccc, "%Y-%m-%d")
Does not work
ddd <- c("20110407", "19891012")
y <- strptime(ccc, "%Y%m%d")
Does this mean I would
Thanks to David and William. I hate it when a typo is all it is but I am a
lousy typist.
--- On Wed, 3/23/11, David Wolfskill wrote:
> From: David Wolfskill
> Subject: Re: [R] Separators in strptime---needed?
> To: "John Kane"
> Cc: "R R-help"
> Received:
Hi Anita,
A bit of sample data would probably help here.
Have a look at ?dput for a handy way to supply some data.
Also a quick summary of exactly what you are trying to accomplish would be
useful. A very cursory reading of the program leaves one wondering why you are
creating all those variab
--- On Sun, 3/27/11, Bulent Arikan wrote:
> From: Bulent Arikan
> Subject: [R] overlaying
> To: r-help@r-project.org
> Received: Sunday, March 27, 2011, 5:45 PM
> Dear List,
> I am working with a small (3 columns and 9 rows) data
> table, which contains
> 9 observations, their mean values and
http://www.gardenersown.co.uk/Education/Lectures/R/basics.htm#t_test
--- On Thu, 3/31/11, arkajyoti jana wrote:
> From: arkajyoti jana
> Subject: [R] how to do t-test in r for difference of mean
> To: r-help@r-project.org
> Received: Thursday, March 31, 2011, 9:07 AM
> I am trying to do t-test
Totally guessing but did you make an earlier call to par() to adjust margins?
Otherwise you may want to supply the matrix here for other people to experiment
with. See ?dput as probably the best way to do this.
--- On Sun, 4/3/11, shahab wrote:
> From: shahab
> Subject: [R] Error in "color
Your message is severely garbled. However a={1,2,3,4,5 6,7,8,9,10}
is not going to work since {} is incorrect. you need c()
Anyway try this:
a=matrix(1:10,ncol=2)
sum(a[1:3,1])
sum(a[1:3,2])
--- On Sun, 4/3/11, mustafabinar wrote:
> From: mustafabinar
> Subject: [R] :HELP
> To: r-help@r-p
Sounds more like an advertisement A bit like the old TV story "Paladin, have
gun, will travel".
--- On Tue, 4/5/11, Bert Gunter wrote:
> From: Bert Gunter
> Subject: [R] A fortunes candidate?
> To: "David Winsemius"
> A fortunes candidate?
> On Tue, Apr 5, 2011 at 3:59 PM, David Winsemius
I believe write.csv had been revamped and some options are no longer available.
--- On Fri, 4/8/11, Santosh wrote:
> From: Santosh
> Subject: [R] a bug in "write.csv"?
> To: "r-help"
> Received: Friday, April 8, 2011, 4:18 PM
> Dear Rxperts!
>
> A simple example where "write.csv" does not see
--- On Sun, 4/10/11, Rolf Turner wrote:
> From: Rolf Turner
> Subject: Re: [R] Question about levels/as.numeric
> To: r-help@r-project.org
> Received: Sunday, April 10, 2011, 9:48 PM
> On 11/04/11 10:08, Peter Ehlers
> wrote:
>
>
> > "Checking" anything with Excel is never much use.
>
>
>
Try this.
===
x<- 1:10
y<- (1:100)*3
par(mfcol=c(2,1))
plot(x, type="o")
plot(y)
===
--- On Tue, 4/12/11, James Annan wrote:
> From: James Annan
> Subject: [R] multiple lines on multiple plots
> To: r-help@r-project.org
> Received: Tuesday, April 12, 2
="blue")
--- On Tue, 4/12/11, John Kane wrote:
> From: John Kane
> Subject: Re: [R] multiple lines on multiple plots
> To: r-help@r-project.org, "James Annan"
> Received: Tuesday, April 12, 2011, 11:54 AM
> Try this.
>
> ===
&
I think using base graphics you would need to use numerical vectors to set the
bubble positions. However there is not reason that you could not suppress the
axis labeling and apply your own.
This code does the first part using circles. There are probably better ways to
do it but this should wo
R?
To: "John Kane"
Received: Saturday, April 16, 2011, 8:36 AM
I am sorry for the fault. The figure is posted at
http://www.mediafire.com/i/?08b9f4um43vxvw8Â (hope this works!).
Thank John for the website.
Â
Xipei Wang, Ph.D. student
--
Xipei Wang, Ph.D. student
Department of Pharma
All that link is doing is taking me to a Windows Live log-in screen.
An alternative posting site might be
[url=http://www.mediafire.com/][b]Mediafire[/b][/url .
--- On Sat, 4/16/11, wangxipei wrote:
> From: wangxipei
> Subject: [R] how to get the plot like this by R?
> To: "r-help"
> Recei
You mean like this?
mydata <- data.frame(aa=1:5, bb=1:5)
mydata[,3] <- mydata[,1] + mydata[,2]
mydata
--- On Sat, 4/16/11, ozgrerg wrote:
> From: ozgrerg
> Subject: [R] adding two colmns of a data frame
> To: r-help@r-project.org
> Received: Saturday, April 16, 2011, 4:22 PM
> It seems very sim
What is Coredata(Z0)?
It would be very useful. as the posting guidelines suggest to supply working
code and sample data.
--- On Tue, 4/19/11, Barbaglia, Guido (ESA) wrote:
> From: Barbaglia, Guido (ESA)
> Subject: [R] Axes Alignment Problem for Multiple Plots
> To: "r-help@r-project.org"
> C
Why not just data.matrix(UN2010) ?
--- On Wed, 4/20/11, Haillie wrote:
> From: Haillie
> Subject: [R] Unlist command drops all my column names in the first row and
> adopts NAs
> To: r-help@r-project.org
> Received: Wednesday, April 20, 2011, 11:05 AM
> Hi Everyone,
>
> I am having trouble t
Can you explain this a bit more. At the moment I don't see what you are trying
to achieve. "calculate the mean of the 1000 values at each of the 4000
points" does not seem to make sense.
--- On Wed, 4/20/11, kmatthews wrote:
> From: kmatthews
> Subject: [R] Random Relabelling
> To: r-help@r
> From: Stephen P Molnar
> Subject: [R] Two Questions
> To: "R-help"
> Received: Wednesday, April 20, 2011, 9:23 AM
> 1. What is a really good book on
> R for a nonprogrammer?
Have a look at the books listed on the R website.
Books by Peter Dalgaard, Phil Spector, Michael Crawley & Joh
n 1:10) {
mydata[,i] <- sample(scores, 5, replace=FALSE)
}
=
--- On Wed, 4/20/11, Kevin Matthews wrote:
From: Kevin Matthews
Subject: Re: [R] Random Relabelling
To: "John Kane"
Cc: r-help@r-project.org
Received: Wednesday, Apri
; {
> sample(rate, size = n, replace = F)
> })
>
> ## Look at the matrix
> dim(permutations)
> head(permutations)
>
> ## Find the column means
> means <- apply(permutations, 1, mean)
> means
>
>
>
>
>
> On Wednesday, April 20, 2011 1:56:35 PM
mple
> > permutations <- apply(permutations, 1, function(x)
> > {
> > sample(rate, size = n, replace = F)
> > })
> >
> > ## Look at the matrix
> > dim(permutations)
> > head(permutations)
> >
> > ## Find the column means
> > means <
You clearly have some strange ... err, whatever.
--- On Thu, 8/4/11, Ted Harding wrote:
> From: Ted Harding
> Subject: [R] Not really off-topic ...
> To: r-h...@stat.math.ethz.ch
> Received: Thursday, August 4, 2011, 8:44 PM
> Greetings all!
> Just arrived via my daily digest of the ALLSTAT li
as I would have thought that the
output would have been a vector.
Could exporting the csv files have somehow mixed up the data structure that
you are working with?
You might want to provide the two data files using the dput() command.
John Kane
Kingston ON Canada
> -Origi
box()
at end of code
John Kane
Kingston ON Canada
> -Original Message-
> From: ala...@yahoo.com
> Sent: Wed, 6 Jun 2012 00:40:53 -0700 (PDT)
> To: r-help@r-project.org
> Subject: [R] changing axis labels
>
> Dear all,
> I am making a function for creatin
We really should have some sample data (see dput() for a handy way to post
some).
However have a look at ?reshape, the plyr and reshape packages or perhaps the
data.table package.
John Kane
Kingston ON Canada
> -Original Message-
> From: libgray3...@gmail.com
> Sent: T
You are from the jpeg you link as far as I can see..
What exactly is the output that you expect in the legend
John Kane
Kingston ON Canada
> -Original Message-
> From: ja...@crosb.ie
> Sent: Tue, 5 Jun 2012 20:18:55 -0700 (PDT)
> To: r-help@r-project.org
> Subj
Try making FuelTypeNum into a factor like this:
p <- ggplot(data=tempTable, aes(x=Bands8, y=AvailableMWNewFormat,
fill=as.factor(FuelTypeNum))) +
geom_bar(position="stack", stat="identity")+
coord_flip()
p
John Kane
Kingston ON Canada
> -Origin
What is X2?
code not running at the moment
John Kane
Kingston ON Canada
> -Original Message-
> From: bsmith030...@gmail.com
> Sent: Wed, 6 Jun 2012 11:52:25 -0400
> To: r-help@r-project.org
> Subject: [R] ggplot2: legend for geom_rug() ..?
>
> Hi,
>
> I
I think we need some data and code. Would you please provide some sample data
(see ?dput for a handy way to provide data) and some working code that
demonstrates the problem?
John Kane
Kingston ON Canada
> -Original Message-
> From: leray.guilla...@gmail.com
> Sent: Thu, 7 Ju
t;blue", label =
"NYC")
I thought that one should be able to generate a second legend with an
aes(colour=ids) but it does not work.
Someone much more knowledgeable than me hopefully will have a better idea.
John Kane
Kingston ON Canada
-Original Message-
I doubt that there is anythig like certfication in R
The same applies for interview questions.
For tutorials just google "r statistics tutorial"
John Kane
Kingston ON Canada
> -Original Message-
> From: sagarnikam...@gmail.com
> Sent: Fri, 8 Jun 2012 02:48:09 -0700
h than the ones I randomly picked.
library(ggplot2)
p <- ggplot(data=tempTable, aes(x=Bands8, y=AvailableMWNewFormat,
fill=as.factor(FuelTypeNum))) +
geom_bar(position="stack", stat="identity")+
coord_flip() +
scale_fill_brewer(palette="Set1", name=&quo
What exacrly does it do? Any pointers to relevant plots?
John Kane
Kingston ON Canada
> -Original Message-
> From: timothyjosephmur...@gmail.com
> Sent: Mon, 11 Jun 2012 10:54:28 -0500
> To: r-help@r-project.org
> Subject: [R] bubbleplot3: R equivalent of the MATLAB fun
UBKEY 06F90DE5381BA480
Ubuntu seems to have happily run through all the other updates with no problem
Any suggestions?
Thanks
John Kane
Kingston ON Canada
sessionInfo()
R version 2.14.1 (2011-12-22)
Platform: i686-pc-linux-gnu (32-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUME
6F90DE5381BA480
john@john-K53U:~$
John Kane
Kingston ON Canada
> -Original Message-
> From: nord...@dshs.wa.gov
> Sent: Tue, 12 Jun 2012 16:02:55 +
> To: jrkrid...@inbox.com, r-help@r-project.org
> Subject: RE: [R] Attempting to update from R 2.14 to 2.15
>
>
Thanks arun,
Thanks arun . It looked good but no luck.
I have updated my /etc/apt/sources.list, apparently installed the gpg code etc
thanks to Dan N's pointers by no go. Still the same error message when doing
sudo ap-get update.
John Kane
Kingston ON Canada
> -Original
The problem is that the Ubuntu site still has 2.14 and won't update til
something like Ubuntu 12.10 or whatever the next release is.
Thanks for all the help.
John Kane
Kingston ON Canada
> -Original Message-
> From: nord...@dshs.wa.gov
> Sent: Tue, 12 Jun 2012 16:58
Thanks I have just subscribed.
John Kane
Kingston ON Canada
> -Original Message-
> From: nord...@dshs.wa.gov
> Sent: Tue, 12 Jun 2012 17:26:02 +
> To: jrkrid...@inbox.com, r-help@r-project.org
> Subject: RE: [R] Attempting to update from R 2.14 to 2.15
>
>&g
This is not really enough information. PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html and provide commented, minimal,
self-contained, reproducible code.
Have you looked at ?unique
John Kane
Kingston ON Canada
> -Original Message-
> From: mandec
I think the column is wrong in adf <- aggregate(.~mm[,1], data=mm, sum)
Try 2 rather than 1 but this is just a guess since the sample data is not
easily useable..
Please supply your sample data using dput(() See ?dput for information. It
makes llife much easier for the reader.
John K
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 Message-
> From: raishilpa@gmail.com
> Sent: Wed, 13 Jun 2012 05:11:29 -0700 (PDT)
>
t, price)) + geom_point(alpha = 1/10)
p
http://had.co.nz/ggplot2/geom_point.html
John Kane
Kingston ON Canada
> -Original Message-
> From: j...@bitwrit.com.au
> Sent: Thu, 14 Jun 2012 21:39:36 +1000
> To: field.c...@gmail.com
> Subject: Re: [R] density plot on a log s
Why would those figues (dim= 3X4, dim=5X4) be the dimensions? Could not they
equally be 4X3 an 4X5 or am I completely misunderstanding the question?
John Kane
Kingston ON Canada
> -Original Message-
> From: karthick.laksh...@gmail.com
> Sent: Thu, 14 Jun 2012 05:51:24 -0700 (
"%d/%m/%Y %H:%M"))
diff(dtime[,1])
John Kane
Kingston ON Canada
> -Original Message-
> From: antony.akk...@ge.com
> Sent: Thu, 14 Jun 2012 03:08:25 -0700 (PDT)
> To: r-help@r-project.org
> Subject: [R] Time difference between two dates/timing
>
> Hi,
>
providing data please use something like dput()
Let's say your vector is called vec. You can type dput(vec) and get a data
structure that you can copy and paste into your email and which a reader can
directly paste into R.
John Kane
Kingston ON Canada
> -Original Message-
> F
,
34.75, 35.25)), .Names = c("V1", "V2", "V3", "V4", "V5", "V6",
"V7", "V8", "V9", "V10"), row.names = c(NA, 6L), class = "data.frame")
Presumably V1 is related to V6 somehow?
If so what
So what have you tried so far?
The posting guidelines asks for code and, where possible, data.
Have a look at ?dput for a possible way to dupply data.
John Kane
Kingston ON Canada
> -Original Message-
> From: shenr...@hotmail.com
> Sent: Wed, 20 Jun 2012 07:32:21 -0700 (PDT
a grouped boxplot
John Kane
Kingston ON Canada
> -Original Message-
> From: f.a.elsendo...@gmail.com
> Sent: Tue, 19 Jun 2012 22:25:31 -0700 (PDT)
> To: r-help@r-project.org
> Subject: Re: [R] Apply() on columns
>
> Hi,
>
> Yes, the columns are related: V1
Sorry that should be 'supply' data
John Kane
Kingston ON Canada
> -Original Message-
> From: shenr...@hotmail.com
> Sent: Wed, 20 Jun 2012 10:53:52 -0700 (PDT)
> To: r-help@r-project.org
> Subject: Re: [R] Conditioned Latin Hypercube Sampling within determine
I'm not sure I got the question but is this something like what you want?
x[is.na(x) ] <- "FALSE"
x
John Kane
Kingston ON Canada
> -Original Message-
> From: ajdam...@gmail.com
> Sent: Wed, 20 Jun 2012 16:44:25 -0400
> To: r-help@r-project.org
&
nice.
Try this where your file is called "mydata"
# just copy the line below and paste into R
head(mydata, 100)
# Now copy the output and paste it into your wordprocess as a reply to the list
and we will have decent data to work with.
John Kane
Kingston ON Canada
> ---
Arrgh yes I did mean dput(head(mydata, 100)). Thanks for catching it.
John Kane
Kingston ON Canada
> -Original Message-
> From: michael.weyla...@gmail.com
> Sent: Fri, 22 Jun 2012 14:25:30 -0500
> To: jrkrid...@inbox.com
> Subject: Re: [R] Questions about doing analysi
86L)), .Names = c("X1000s", "X600s", "X500s", "X250s",
"X100s", "X50s", "X10s", "X5s", "X3s", "X1s"), class = "data.frame", row.names
= c("A",
"B", "C"))
#th
ue, fill= Source )) +
geom_bar(position = "dodge") +
scale_y_continuous(" Scale Values") +
scale_x_discrete("X values") +
opts( title = "Graphing Exercise")
p
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
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
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
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
#=
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
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 (
; )
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
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
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
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
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
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
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
&
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...
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
1101 - 1200 of 1800 matches
Mail list logo