Re: [R] ggplot2 problem

2013-03-14 Thread Ista Zahn
Hi Catalin, Untested, but I think data.m$Month <- factor(data.m$Month, levels = month.abb) before plotting will do it. Best, Ista On Thu, Mar 14, 2013 at 12:51 PM, catalin roibu wrote: > Hello all! > I have a problem with ggplot2 library. I want to do an heat map and the y > variables are the

[R] ggplot2 problem

2013-03-14 Thread catalin roibu
Hello all! I have a problem with ggplot2 library. I want to do an heat map and the y variables are the year months. If I use the following code, he y values are in alphabetical order, but I want it in month order. The code is: library(reshape) library(ggplot2) library(scales) p <- ggplot(data.m, ae

Re: [R] ggplot2-Problem (plot different variables)

2012-04-20 Thread ONKELINX, Thierry
t 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 David Studer Verzonden: vrijdag 20 april 2012 10:31 Aan: r-help@r-project.org Onderwerp: [R] ggplot2-Problem (

[R] ggplot2-Problem (plot different variables)

2012-04-20 Thread David Studer
Hi everyone! I have the following difficulties using ggplot2 # My Data data<-as.data.frame(cbind(a=c(1,1,2,2,2,2,3,3,4), b=c(1,2,3,3,4,4,4,4,4))) And I would like to plot the frequency-distributions of both variables in one plot as lines. For both variables the values (1-4) should be on the x-ax

Re: [R] ggplot2 problem in interacting mode

2010-11-10 Thread Ista Zahn
Hi, Here are a couple of suggestions: -- Start R without loading startup scripts etc. (R --vanilla) and see if it works. If yes, there is something loading in your startup file or restored environment that is causing problems. -- Upgrade to the latest version of R HTH, Ista On Wed, Nov 10, 2010

[R] ggplot2 problem in interacting mode

2010-11-10 Thread zhenjiang xu
Hi all, When running R interactively, I have the problem as following: > library(ggplot2) Loading required package: reshape Loading required package: plyr Attaching package: 'reshape' The following object(s) are masked from 'package:plyr': round_any Loading required package: grid Loading

Re: [R] ggplot2 problem

2008-11-26 Thread steve
Yes - that's it. thank you Steve __ 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, re

Re: [R] ggplot2 problem

2008-11-26 Thread Eric
aes() does not have an argument, "Year" but it does have an argument "x" so try: df <- data.frame(Year = rep(1:5,2)) m <- ggplot(df, aes(x=Year)) m + geom_bar() (It works for me.) Eric steve wrote: I'm using ggplot2 2.0.8 and R 2.8.0 df = data.frame(Year = rep(1:5,2)) m = ggplot(df, aes(Y

[R] ggplot2 problem

2008-11-26 Thread steve
I'm using ggplot2 2.0.8 and R 2.8.0 df = data.frame(Year = rep(1:5,2)) m = ggplot(df, aes(Year=Year)) m + geom_bar() Error in get("calculate", env = ., inherits = TRUE)(., ...) : attempt to apply non-function __ R-help@r-project.org mailing list htt

[R] ggplot2 - Problem with geom_abline()

2008-11-21 Thread David Hajage
Hello, Sorry to ask again something with ggplot2... I detect something, perhaps a bug (but more probably a syntax error, I'm learning...) : # This is working : x = wt, y = mpg, abline with intercept = 20 and slope = 1 qplot(wt, mpg, data = mtcars) + geom_abline(intercept = 20, slope = 1) # This

Re: [R] ggplot2: problem with large fonts and overlapping labels

2008-08-28 Thread Paul Emberson
. ~ John Tukey -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Paul Emberson Verzonden: woensdag 27 augustus 2008 17:58 Aan: r-help@r-project.org Onderwerp: [R] ggplot2: problem with large fonts and overlapping labels Hi, I am using ggplot2 to generate graphs

Re: [R] ggplot2: problem with large fonts and overlapping labels

2008-08-28 Thread Paul Emberson
-- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Paul Emberson Verzonden: woensdag 27 augustus 2008 17:58 Aan: r-help@r-project.org Onderwerp: [R] ggplot2: problem with large fonts and overlapping labels Hi, I am using ggplot2 to generate graphs for a paper I am writing in two column forma

Re: [R] ggplot2: problem with large fonts and overlapping labels

2008-08-28 Thread ONKELINX, Thierry
Paul Emberson Verzonden: woensdag 27 augustus 2008 17:58 Aan: r-help@r-project.org Onderwerp: [R] ggplot2: problem with large fonts and overlapping labels Hi, I am using ggplot2 to generate graphs for a paper I am writing in two column format. When I shrink the graphs to fit in a single column, the

[R] ggplot2: problem with large fonts and overlapping labels

2008-08-27 Thread Paul Emberson
Hi, I am using ggplot2 to generate graphs for a paper I am writing in two column format. When I shrink the graphs to fit in a single column, the graph is clear but the axis and tick labels are way too small. I have increased the font sizes by manipulating the grid. However, when I do this

Re: [R] ggplot2 - Problem with grid plot

2008-03-04 Thread Chris Friedl
ONKELINX, Thierry wrote: > > Dear Chris, > > You'll need to add information on the facet factor (color) to the > medians dataset. > > library(ggplot2) > medians <- aggregate(diamonds$price, list(cut = diamonds$cut, color = > diamonds$color), median) > ggplot(data=diamonds, aes(x=price)) + geo

Re: [R] ggplot2 - Problem with grid plot

2008-03-04 Thread hadley wickham
On Tue, Mar 4, 2008 at 6:41 AM, ONKELINX, Thierry <[EMAIL PROTECTED]> wrote: > Dear Chris, > > You'll need to add information on the facet factor (color) to the > medians dataset. > > library(ggplot2) > medians <- aggregate(diamonds$price, list(cut = diamonds$cut, color = > diamonds$color), me

Re: [R] ggplot2 - Problem with grid plot

2008-03-04 Thread ONKELINX, Thierry
analysis, properly conducted, is a delicate dissection of uncertainties, a surgery of suppositions. ~M.J.Moroney -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Chris Friedl Verzonden: dinsdag 4 maart 2008 13:17 Aan: r-help@r-project.org Onderwerp: [R]

[R] ggplot2 - Problem with grid plot

2008-03-04 Thread Chris Friedl
Hi R-help I'm trying to create a grid plot in which each plot in the grid contains two density plots (colored by factor) and two vertical lines at the respective medians (also colored by the factor). Using the diamonds dataset as an example, the following commands give me price density plots by

Re: [R] ggplot2: problem with geom_errorbar and geom_abline

2007-10-04 Thread James D Forester
Ben Bolker wrote: > > > In http://www.nabble.com/plot-graph-with-error-bars-trouble-tf4535734.html > Hadley Wickham says that this is a bug, fixed in the development version. > However, I don't see that the update has propagated to my usual CRAN > mirror yet ... > The error-bar issue is ment

Re: [R] ggplot2: problem with geom_errorbar and geom_abline

2007-10-03 Thread Ben Bolker
James D Forester wrote: > > Hi all, > > I have run into what appears to be a bug in ggplot2; however, I am new > to the ggplot syntax, so I might be missing a key element. The main > issue is that I cannot get geom_abline to plot when colour is used to > identify "group" in the main plot.

[R] ggplot2: problem with geom_errorbar and geom_abline

2007-10-03 Thread James D Forester
Hi all, I have run into what appears to be a bug in ggplot2; however, I am new to the ggplot syntax, so I might be missing a key element. The main issue is that I cannot get geom_abline to plot when colour is used to identify "group" in the main plot. When I remove colour, geom_abline works b