Remove the y=c2 from your histogram plot. 

----------------------------------------------------------------------------
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and 
Forest
Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, methodology 
and quality assurance
Gaverstraat 4
9500 Geraardsbergen
Belgium
tel. + 32 54/436 185
thierry.onkel...@inbo.be
www.inbo.be

To call in the statistician after the experiment is done may be no more than 
asking him to perform a post-mortem examination: he may be able to say what the 
experiment died of.
~ Sir Ronald Aylmer Fisher

The plural of anecdote is not data.
~ Roger Brinner

The combination of some data and an aching desire for an answer does not ensure 
that a reasonable answer can be extracted from a given body of data.
~ John Tukey

-----Oorspronkelijk bericht-----
Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens 
romunov
Verzonden: vrijdag 28 augustus 2009 16:58
Aan: Gabor Grothendieck
CC: r-help@r-project.org
Onderwerp: Re: [R] problem plotting with ggplot2

Hello Gabor,

your suggestion running R in vanilla mode was fruitful. I can plot at least 
bars. How would you proceed. How can I root out "bad" package or whatever is 
causing this?

Cheers,
Roman



On Fri, Aug 28, 2009 at 4:48 PM, Gabor Grothendieck <ggrothendi...@gmail.com
> wrote:

> A few things to try.
>
> Try starting R using the --vanilla flag.  From the Windows command 
> line:
>
> rem change next line appropriately if needed cd \Program 
> Files\R\R-2.9.1\bin Rgui --vanilla
>
> and see if it still happens.    If that does not help
> try reinstalling R and all packages.
>
>
> On Fri, Aug 28, 2009 at 10:20 AM, romunov<romu...@gmail.com> wrote:
> > As far as I know, the packages are up to date. I have had identical
> problems
> > on 2.9.1 as well as on 2.8.1. I did a fresh install of 2.9.1 to no avail.
> > Here is my sessionInfo():
> >
> >> sessionInfo()
> > R version 2.9.1 (2009-06-26)
> > i386-pc-mingw32
> >
> > locale:
> >
> LC_COLLATE=Slovenian_Slovenia.1250;LC_CTYPE=Slovenian_Slovenia.1250;LC
> _MONETARY=Slovenian_Slovenia.1250;LC_NUMERIC=C;LC_TIME=Slovenian_Slove
> nia.1250
> >
> > attached base packages:
> > [1] stats     graphics  grDevices utils     datasets  grid      methods
> > [8] base
> >
> > other attached packages:
> > [1] ggplot2_0.8.3 reshape_0.8.3 plyr_0.1.9    proto_0.3-8
> >
> > loaded via a namespace (and not attached):
> > [1] tools_2.9.1
> >
> > Cheers,
> > Roman
> >
> >
> >
> >
> > On Fri, Aug 28, 2009 at 10:05 AM, baptiste auguie < 
> > baptiste.aug...@googlemail.com> wrote:
> >
> >> Hi,
> >>
> >> Have you checked that you have the latest version of ggplot2 and plyr?
> >> Please post your sessionInfo()
> >>
> >> HTH,
> >>
> >> baptiste
> >>
> >> 2009/8/28 romunov <romu...@gmail.com>
> >>
> >>> Dear R-Help subsribers,
> >>>
> >>>  upon running into a wonderful ggplot2 package by accident, I 
> >>> abruptly encountered another problem. Almost every command run 
> >>> with ggplot2
> results
> >>> in some sort of error. The one below is far the most common one. 
> >>> Kind people from ggplot2 mailing list couldn't manage to solve the 
> >>> problem, so I'm re-posting it here to try my luck. I will 
> >>> recommend myself for any tips
> on
> >>> how to solve this, as I would really benefit from using this package.
> >>>
> >>>  > head(cebelice)
> >>>   time c2
> >>> 1 00:00  0
> >>> 2 00:15  0
> >>> 3 00:30  0
> >>> 4 00:45  0
> >>> 5 01:00  0
> >>> 6 01:15  0
> >>> > dim(cebelice)
> >>> [1] 96  2
> >>> > ggplot(cebelice, aes(x=time, y=c2)) + geom_histogram()
> >>> Error in all.vars(as.formula(.$facets)) :
> >>>  could not find function "as.formula"
> >>>
> >>>
> >>> This is straight from ggplot2 sample page for barplots:
> >>>
> >>> > c <- ggplot(mtcars, aes(factor(cyl))) c + geom_bar()
> >>> Error in get("transform", env = ., inherits = TRUE)(., ...) :
> >>>  attempt to apply non-function
> >>>
> >>>
> >>> Sincerely yours,
> >>>
> >>> Roman
> >>>
> >>>        [[alternative HTML version deleted]]
> >>>
> >>> ______________________________________________
> >>> R-help@r-project.org mailing list
> >>> https://stat.ethz.ch/mailman/listinfo/r-help
> >>> PLEASE do read the posting guide
> >>> http://www.R-project.org/posting-guide.html
> >>> and provide commented, minimal, self-contained, reproducible code.
> >>>
> >>
> >>
> >>
> >> --
> >> _____________________________
> >>
> >> Baptiste AuguiƩ
> >>
> >> School of Physics
> >> University of Exeter
> >> Stocker Road,
> >> Exeter, Devon,
> >> EX4 4QL, UK
> >>
> >> http://newton.ex.ac.uk/research/emag
> >> ______________________________
> >>
> >>
> >
> >        [[alternative HTML version deleted]]
> >
> >
> > ______________________________________________
> > R-help@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
> >
>

        [[alternative HTML version deleted]]


Druk dit bericht a.u.b. niet onnodig af.
Please do not print this message unnecessarily.

Dit bericht en eventuele bijlagen geven enkel de visie van de schrijver weer 
en binden het INBO onder geen enkel beding, zolang dit bericht niet bevestigd is
door een geldig ondertekend document. The views expressed in  this message 
and any annex are purely those of the writer and may not be regarded as stating 
an official position of INBO, as long as the message is not confirmed by a duly 
signed document.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to