search for: scale_date

Displaying 11 results from an estimated 11 matches for "scale_date".

Did you mean: sale_date
2009 Jun 01
2
ggplot2 and Date class
I'm trying to plot a time series in ggplot, but a date column in my data frame is causing errors. Rather than provide my own data, I'll just refer to the scale_date example at: http://had.co.nz/ggplot2/scale_date.html , which reproduces the error. > df <- data.frame( date = seq(Sys.Date(), len=100, by="1 day")[sample(100, 50)], price = runif(50) ) > dt <- qplot(date, price, data=df, geom="line") + opts(aspect.ratio = 1/4) >...
2010 Feb 19
0
ggplot2: version 0.8.6
...ssing values * legend: don't try and display legend when unnecessary scale added * legend: text labels now correctly left-aligned when non-numeric * order aesthetic now correctly affects position adjustments (Fixes #70) * qplot loads facetting variables from global environment more correctly * scale_date and scale_date_time now work with infinite positions * scale_date and scale_date_time now take expand argument * scales were not getting automatically added in many situations (Fixes #69) * scale_manual was not returning labels in the correct format and so legends were not getting merged correctl...
2010 Feb 19
0
ggplot2: version 0.8.6
...ssing values * legend: don't try and display legend when unnecessary scale added * legend: text labels now correctly left-aligned when non-numeric * order aesthetic now correctly affects position adjustments (Fixes #70) * qplot loads facetting variables from global environment more correctly * scale_date and scale_date_time now work with infinite positions * scale_date and scale_date_time now take expand argument * scales were not getting automatically added in many situations (Fixes #69) * scale_manual was not returning labels in the correct format and so legends were not getting merged correctl...
2009 Jul 24
1
ggplot question
In page http://had.co.nz/ggplot2/scale_date.html , there is a time series plot for multiple variables at the bottom. i.e qplot(date, value, data = em, geom = "line", group = variable) + + facet_grid(variable ~ ., scale = "free_y") How can I make different color for different series? Thanks -- View this message in...
2010 Jun 28
2
Stacked Histogram, multiple lines for dates of news stories?
...sh it a bit further and to a stacked histogram or a multiple line chart. Can anyone suggest a way to go about doing this? I should say, I played around in Hadley Wickham's ggplot package and looked at his website, and there is a way to render multiple lines here: http://had.co.nz/ggplot2/scale_date.html but it was not clear to me how to plot just the dates or an index of the dates as I don't have a value for the y axis, other than the number of times a story was published in that time frame. Regardless, I hope someone can suggest something. Yours, Simon J. Kiss test=sample(1:3, 50,...
2008 Oct 05
0
ggplot2 - version 0.7
...ere calculated incorrectly when missing values were present * scales: extra scales ignored (again) * scales: legends respect fixed parameters of the layer * scales: legends won't appear when aesthetics are mapped to NULL, or set to fixed value * scales: xend and yend now transformed correctly * scale_date: breaks are now rounded to correct position New functionality * geom_point: can now control colour and fill separately for point glyphs with borders * geom_step: now has parameter direction which can take values vh (vertical then horizontal) or hv (horizontal then vertical) describing the shape o...
2008 Oct 05
0
ggplot2 - version 0.7
...ere calculated incorrectly when missing values were present * scales: extra scales ignored (again) * scales: legends respect fixed parameters of the layer * scales: legends won't appear when aesthetics are mapped to NULL, or set to fixed value * scales: xend and yend now transformed correctly * scale_date: breaks are now rounded to correct position New functionality * geom_point: can now control colour and fill separately for point glyphs with borders * geom_step: now has parameter direction which can take values vh (vertical then horizontal) or hv (horizontal then vertical) describing the shape o...
2009 Nov 14
2
formatting dates in axis labels (ggplot2)
I'm having trouble figuring out how to format Date variables when used as axis labels in graphs. The particular case here is an attempt to re-create Nightingale's coxcomb graph with ggplot2, where I'd like the months to be labeled as "Mar 1885", "Apr 1885", using a date format of "%b %Y" applied to label the dates, or really anything other than
2007 Jun 08
3
Barplots: Editing the frequency x-axis names
Hi I have a timeSeries object (X) with monthly returns. I want to display the returns with a barplot, which I can fix easily. But my problem is labaling the x-axis, if I use the positions from the timeseries It gets very messy. I have tried rotating and changing the font size but it doesn't do the trick. I think the optimal solution for my purpose is too only display every second or third
2009 Jun 01
1
Minor tick marks for date/time ggplot2 (this is better, but not exactly what I want)
library(ggplot2) melt.updn <- (structure(list(date = structure(c(11808, 11869, 11961, 11992, 12084, 12173, 12265, 12418, 12600, 12631, 12753, 12996, 13057, 13149, 11808, 11869, 11961, 11992, 12084, 12173, 12265, 12418, 12600, 12631, 12753, 12996, 13057, 13149), class = "Date"), site = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2010 Oct 27
3
ggplot - unwanted sorted X values
Hi, I have this script: dat <- data.frame(X = halistat$Date,Y1 = halistat$avg,Y2 = halistat$stdev) ggplot(data = dat, aes(x = X, y = Y1, ymin = Y1 - Y2, ymax = Y1 + Y2)) + geom_point() + # points at the means geom_line() + # if you want lines between pints geom_errorbar() # error bars, Y1 - Y2 and Y1 + Y2 halistat$Date values: 29/1/10 21/2/10 30/3/10 30/4/10 30/5/10 In the resulted