ls(bdf$func_feed_grp)<- str_trim(levels(bdf$func_feed_grp))
levels(bdf$func_feed_grp)
#[1] "Filterer" "Gatherer" "Grazer" "Omnivore" "Parasite" "Predator"
"Shredder"
A.K.
- Original Message -----
From: Rich Shepard
On Fri, 16 Aug 2013, Richard M. Heiberger wrote:
The major problem is all the padding and the LF in the level names.
This repair is based on the ?gsub example on "## trim trailing white space".
Rich
Thanks. I thought of removing white space (didn't notice the spurious
newline) in emacs but
The major problem is all the padding and the LF in the level names.
This repair is based on the ?gsub example on "## trim trailing white space".
levels(bdf$func_feed_grp)
## [1] " Filterer\n" " Gatherer " " Grazer" " Omnivore
"
## [5] " Parasite " " Predator " " Shredde
On Thu, 15 Aug 2013, Rich Shepard wrote:
Now I see the source of my error: I quoted the data file name! Removing
the quotation marks produces the plots.
Thanks to A.K. and Dennis Murphy I understand how to plot the data in
these data sets. However, I am not getting the colors within the plot
On Thu, 15 Aug 2013, arun wrote:
It's better to dput() your dataset.
A.K.,
That's what I usually do; with such a small data set I thought the raw
data would be equally good.
#or
xyplot(pct~sampdate,data=burns.date.ffg,groups=func_feed_grp,pch=1:7,type="l")
What I see in the plots are 7
'2011-07-13','Predator',0.0247
'2011-07-15','Filterer',0.0385
'2011-07-15','Gatherer',0.8469
'2011-07-15','Grazer',0.0147
'2011-07-15','Omnivore',0.0005
'2011-07-15','Parasite',0.
On Thu, 15 Aug 2013, arun wrote:
#Not sure about your exact specification, so this would get you started.
xyplot(pct~sampdate,data=burns.date.ffg,groups=func_feed_grp,pch=1:7,type="l")
A.K./Dennis;
Now I see the source of my error: I quoted the data file name! Removing
the quotation marks p
ecification, so this would get you started.
xyplot(pct~sampdate,data=burns.date.ffg,groups=func_feed_grp,pch=1:7,type="l")
A.K.
- Original Message -
From: Rich Shepard
To: r-help@r-project.org
Cc:
Sent: Thursday, August 15, 2013 12:51 PM
Subject: [R] Plotting Multiple Fac
This is a level of complexity I've not before encountered and I have not
seen the solution in Deepayan Sarkar's book. Briefly, I want to plot values
for each of 5 factors over a range of dates to visualize whether the
relative values of each factor change over time.
The data frame structure i
9 matches
Mail list logo