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
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
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 (
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
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
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
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
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
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
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
.
~ 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
--
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
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
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
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
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
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]
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
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
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.
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
21 matches
Mail list logo