Displaying 20 results from an estimated 3000 matches similar to: "reshape bug?"
2008 Oct 11
1
problem with cut.Date/date plotting in ggplot2
I've hit a problem in ggplot2 which I can trace back to cut.Date ,
which is either a bug or (??) ggplot2 trying to do something it
shouldn't with cut.Date (although its use of cut.Date seems OK).
Apparently any (?) call of the form
cut(as.Date("2008-07-07"),"weeks")
where the date *begins the week*, gives the error
Error in 1:(1 + max(which(breaks < maxx))) :
2008 Sep 15
4
getting data into correct format for summarizing ... reshape, aggregate, or...
I would like to reformat this data frame into something that I can
produce some descriptive statistics. I have been playing around with
the reshape package and maybe this is not the best way to proceed. I
would like to use RiverMile and constituent as the grouping variables
to get the summary statistics:
198a 198b
mean mean
sd sd
... ...
etc. for all of these.
I have tried
2008 Oct 14
1
ggplot2 plot with symbols and then add line
r <-(structure(list(TSS = c(2.8, 8.4, 11, 1.3, 4.2, 2, 3.4, 14, 8.2,
3.1, 1.4, 0.9, 0.5, 6.1, 9.2, 0.6, 1, 11, 2.4, 1.2, 1.3, 1.3,
0, 1.8, 8, 11, 11, 8.5, 8.5, 1.8, 13, 4.4, 1.4, 2.1, 0.5, 25,
25, 9.3, 6.1, 1.6, 1.5, 19, 19, 24, 9.6, 1.8, 1.4, 1), GPP = c(1.213695235,
3.817313822, 1.267930498, 10.45692825, 3.268295623, 3.505286001,
4.468225245, 0.915653726, 1.635617261, 3.726133898,
2008 Sep 24
2
lattice xyplot symbols instead of colors and legend matching plot symbols or colors
I would like to use the data below where the plots are close to what I
want. Instead of color I would like to use different symbols, and
have the symbols in the legend match the graphs. I am also going to
add a regression line to these I know about the type="r" (which is
fine for these particular graphs) argument, but it fits the subsets
instead of the entire data set-- should I use a
2008 Oct 09
1
nls, lattice, and conversion over to ggplot
I am trying to figure out how to use ggplot2. I would like to do the below
with ggplot, but I can not figure out how. The data provided is a subset of
a much larger data set, but these data are the data necessary to make the
plot. I think I would rather have the colors become symbols, and I do know
how to do that in lattice, but here is a quick and dirty version.
thanks
r
2008 Apr 29
1
data management (subsetting and recombining)
This is an example of two months of data from a twenty four month data set
that I would like to apply this too. These data are subsets of the same
stations throught time, but differing ones were included on different
sampling dates. I would like to subset these data and then put them
together as a big matrix with the by column being RiverMile. What is the
easiest way to proceed as this is a
2008 Apr 29
1
merging multiple data frames with different numbers of rows
merge can only merge two objects at a time- I would like to merge more than
two objects at a time.
s.d <- structure(list(RiverMile = c(202L, 198L, 190L, 185L, 179L, 148L,
119L, 61L)), .Names = "RiverMile", row.names = c(NA, -8L), class =
"data.frame")
#s.d is all of the river miles that can occur in all of the data frames that
I want to put together
feb06 <-
2008 Oct 23
1
Reversing xlim qplot
I would like to be able to reverse the xlim on qplot
this is the code that I am using
qplot(a[,"River.Mile"], a[,26]
,ylab=colnames(a)[26], xlab="RiverMile", xlim=rev(c(60,
216)))+geom_smooth()+scale_x_continuous(breaks=c(215,202,198,190,185,179,148,119,61),
2009 Jan 07
1
Replace Function (How to replace numbers in a data frame with a specific number)
taxa <- (structure(list(Date = structure(c(4L, 4L, 4L, 4L, 4L, 4L, 4L,
4L, 4L, 4L, 4L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L), .Label = c("2006/04",
"2006/05", "2006/07", "2006/10", "2006/12", "2007/02", "2007/04",
"2007/06", "2007/08", "2007/10", "2007/12", "2008/01"), class =
2008 May 06
4
General Plotting Question
f <- (structure(list(X = structure(96:97, .Label = c("119DAmm", "119DN",
"119DNN", "119DO", "119DOC", "119Flow", "119Nit", "119ON", "119OPhos",
"119OrgP", "119Phos", "119TKN", "119TOC", "148DAmm", "148DN",
"148DNN", "148DO",
2008 Dec 02
1
ggplot2 facet_wrap problem
Hadley,
I don't know if I am doing something wrong or if it is ggplot please
see the two graphs at the bottom of the page (code).
melt.nut <- (structure(list(RiverMile = c(119L, 119L, 119L, 119L, 119L, 119L,
119L, 119L, 119L, 148L, 148L, 148L, 148L, 148L, 148L, 148L, 179L,
179L, 179L, 179L, 179L, 179L, 179L, 185L, 185L, 185L, 185L, 185L,
185L, 185L, 190L, 190L, 190L, 190L, 190L, 190L,
2008 Mar 28
1
How to schedule R scripts?
useRs,
Is there a way to schedule R scripts? I would like to run certain
scripts three times a day. I'm running R on Windows XP.
> sessionInfo()
R version 2.6.0 (2007-10-03)
i386-pc-mingw32
locale:
LC_COLLATE=Finnish_Finland.1252;LC_CTYPE=Finnish_Finland.1252;LC_MONETARY=Finnish_Finland.1252;LC_NUMERIC=C;LC_TIME=Finnish_Finland.1252
attached base packages:
[1] splines grid stats
2009 Jun 01
2
Sweave:Figures from plot (LME output) not getting generated (pdf or eps)
Hi,
I seem to be facing a strange problem when I use Sweave for creating a
LaTeX document of the R lme() output --- The EPS and PDF figure files
get created, but are empty. I have attached a reproducible example
below (taken from the R lme() help example).
------------------------------------------------------------------------------------
\documentclass[a4paper,10pt]{article}
2008 May 26
1
SciViews and Tinn-R installation problem
Hello,
I have just installed R 2.7.0 and re-installed SciViews 0.8-9 and Tinn-R
1.19.4.7 and seem to have broken something along the way as follows.
I double-click on my current .RData file in the Windoze explorer, R
Console and Tinn-R load successfully (?).
I can list objects in my working directory with ls() but, when I attempt
to refresh any list in the R explorer tab of the Tools child
2010 Mar 29
0
Re : how to update r to lattest version on debian lenny?
If you need a newer version of R for installing the latest version of plyr, perhaps another solution (as very new versions of R -2-11.0-
will come out soonly ) , which needs 2 lines of bash!,
might be
to download an old version of plyr :
wget \
http://cran.at.r-project.org/src/contrib/Archive/plyr/plyr_0.1.1.tar.gz
and install it
R CMD INSTALL plyr_0.1.1.tar.gz
(and then reshape
2009 Oct 26
1
Unable to get Legend with survplot rms package
Hello,
I apologize for the post as I am certainly overlooking a simple
solution to my difficulties with getting a legend to print on a
survplot from the rms package.
I am plotting the following:
survplot(survest(fita), n.risk=T, conf='none', cex.n.risk=.85, dots=T,
col='gray10', lty=2)
survplot(survest(fit), n.risk=F, conf='none', add=T)
survplot(survest(fitb), n.risk=F,
2008 Apr 17
1
odfWeave \Sexpr
Dear All,
Using odfWeave is working fine for me using code chunks <<...>>= ... @
But the inline \Sexpr{date()} is not evaluated and returns again
\Sexpr{date()} instead of "Thu Apr 17 18:15:47 2008".
What might be the reason for that, what do I have to look for?
I'm using Windows XP, R 2.6.1, odfWeave_0.7.3 and OpenOffice 2.4.
Session Info:
R version 2.6.1
2012 Sep 11
1
Animation Problem
Hi List,
I am trying to build an animation and facing problem as animation is not
coming "live".
The goal is to build "heart beats" like diagram for the data given below.
data :
structure(list(date = 1971:1991, x = c(41L, 60L, 41L, 61L, 22L,
83L, 31L, 55L, 22L, 14L, 38L, 6L, 29L, 17L, 10L, 99L, 88L, 32L,
68L, 78L, 26L)), .Names = c("date", "x"), class =
2008 Jan 15
1
navigating ggplot viewports
list(...)
I can not get at the grid viewports in a ggplot2 plot.
I know there is supposed to be a viewport called "panel_1_1" but
downViewport() can't find it. Has the viewport been popped?
I had a quick look at the functions involved (eg ggplot_plot)
but there is no obvious problem there.
> library(ggplot2)
> qplot(1:10, 1:10)
> current.viewport()
viewport[ROOT]
>
2009 Jul 21
1
error when installing rjags
Hi All: I get the following error when trying to install the rjags package.
I've installed the
jags software and I'm using Fedora 10.0 and my sessionInfo is at the bottom
of this email.
I'm also sorry if this email ends up having control A's all over it. I still
haven't figured how to fix that. Thanks.
[1] "LOADING MASS LIBRARY"
checking for