Thanks a lot, Brian!
--
View this message in context:
http://n4.nabble.com/Problems-with-boxplot-in-ggplot2-qplot-tp1555338p1558810.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
On 2/15/2010 2:41 PM, Dimitri Shvorob wrote:
library(sqldf)
library(ggplot2)
t = data.frame(t = seq.Date(as.Date(2009-01-01), to =
as.Date(2009-12-01), by = month))
x = data.frame(x = rnorm(5))
df = sqldf(select * from t, x)
A simpler way to get random data that doesn't involve the sqldf
Now that we have a reproducible example... ;)
--
View this message in context:
http://n4.nabble.com/Problems-with-boxplot-in-ggplot2-qplot-tp1555338p1557994.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing
Hi Dimitri,
Have you looked at the examples for scale_x_date -
http://had.co.nz/ggplot2/scale_date.html? They show you how to both
set the limits and control the labels.
Hadley
On Sun, Feb 14, 2010 at 1:34 PM, Dimitri Shvorob
dimitri.shvo...@gmail.com wrote:
... Unfortunately, a problem
Thank you, Hadley. I try
jpeg(file, width = 800, height = 600, quality = 100)
qplot(factor(closed$close.month), closed$closing.balance, geom = boxplot,
main = Monthly distributions of closing balances, xlab = Month,
ylab = Balance, USD) + theme_bw() + scale_x_date(major = months, minor
=
Trying
+ scale_x_date(format = %b)
produces a peculiar result: Apr and Dec facets are labeled Jan, remaining
labels are blank.
--
View this message in context:
http://n4.nabble.com/Problems-with-boxplot-in-ggplot2-qplot-tp1555338p1556573.html
Sent from the R help mailing list archive at
Without a reproducible example, it's impossible to give you any more
suggestions.
Hadley
On Mon, Feb 15, 2010 at 2:16 PM, Dimitri Shvorob
dimitri.shvo...@gmail.com wrote:
Trying
+ scale_x_date(format = %b)
produces a peculiar result: Apr and Dec facets are labeled Jan, remaining
labels
library(sqldf)
library(ggplot2)
t = data.frame(t = seq.Date(as.Date(2009-01-01), to =
as.Date(2009-12-01), by = month))
x = data.frame(x = rnorm(5))
df = sqldf(select * from t, x)
qplot(factor(df$t), df$x, geom = boxplot) + theme_bw()
qplot(factor(df$t), df$x, geom = boxplot) + theme_bw() +
Dataframe closed contains balances of closed accounts: each row has month of
closure (Date-type column month) and latest balance. I would like to plot
by-month distributions of balances. A qplot call below produces several
warnings and no output.
Can anyone help?
Thank you.
PS. A really basic
Hi,
it's hard to tell what's wrong without a reproducible example, but I
noted two things:
- AFAIK there is no plot method for ggplot2. You probably meant print(p) instead
- if you map x to factor(month), I think it will be incompatible with
your xlim values range(month).
HTH,
baptiste
On 14
... Unfortunately, a problem remains: I cannot label x ticks a la 'names.arg
= '.
month has values like '2009-01-01', '2009-02-01', etc., while I would prefer
'Jan', 'Feb'. Using
closed$month = format(closed$month, %b)
disrupts the order of plot's panels, which now follows the alphabetic
My bad: once I ran dev.off(), I did get a plot, albeit a blank one. Then I
removed xlim - which I put in after qplot's complain about xlim - and voila!
Thanks a lot.
--
View this message in context:
http://n4.nabble.com/Problems-with-boxplot-in-ggplot2-qplot-tp1555338p1555352.html
Sent from
Hi
r-help-boun...@r-project.org napsal dne 05.09.2009 04:59:41:
Hi Petr,
Thanks for these comments.
I'm sorry that my post was not clear. I was referring to the questions
in
my original post/code/file uploads, but I had forgotten to include an
updated file (now attached
Hi Petr,
Thanks for these comments.
I'm sorry that my post was not clear. I was referring to the questions in
my original post/code/file uploads, but I had forgotten to include an
updated file (now attached
http://www.nabble.com/file/p25304663/Post%2Btrial%2Bdata.csv
Post+trial+data.csv ) to
Hi
it is rather difficult to understand what you mean by your
questions/answers without real reproducible code.
r-help-boun...@r-project.org napsal dne 03.09.2009 13:41:11:
I'm posting answers to my own Q's here - as far as I have answers -
first so
that people don't spend time on them,
I'm posting answers to my own Q's here - as far as I have answers - first so
that people don't spend time on them, and second in case the solutions are
helpful to anyone else in future.
1) My first question is: is there a simple way of getting both dates along
the x-axis and the *100 calculation
Hello,
I have been having difficulty getting boxplot to give the output I want -
probably a result of the way I have been handling the data.
The data is arranged in columns: each date has two sets of data. The number
of data points varies with the date, so each column is of different length.
17 matches
Mail list logo