Displaying 12 results from an estimated 12 matches for "geom_step".
2012 Nov 07
1
change colour of geom_step by scale_colour_manual
...the grey scale I want. Any help would be highly appreciated.
[version 1- working]
library(ggplot2)
ggplot(qry_r3_AFF0_CumRate_pooled[qry_r3_AFF0_CumRate_pooled$trt_label %in%
c('ace','ctrlAM','met'),]
, aes(x=AFF0, y=cum_rate_AFF0_pooled, group=trt_label))+
geom_step(aes(color=trt_label), direction="hv", size=5.0)+
scale_y_continuous("Rates of initiating first orientation flight",
limits=c(0,0.6), expand=c(0,0), breaks=c(0,0.2,0.4,0.6)) +
scale_x_continuous("Age of adults (days)", limits=c(0,16),
expand=c(0,0), br...
2012 Aug 09
1
Using unicode symbol has unexpected results in levels of factor object
...;AFP > 16"
>
The desired result is produced with levels().
The code below shows this issue in context through calls to ggplot() if you don't mind loading all the libraries.
> library(ggplot2)
> library(gridExtra)
> library(plyr)
>
> ggplot(.df, aes(time, surv)) + geom_step(aes(color = afpStrata), size = 1.0)
>
> ggplot(.df, aes(time, surv)) + geom_step(aes(color = afpStrata), size = 1.0) +
+ scale_colour_hue(breaks=afpLabels, labels=afpLabels)
>
I am running a pre-compiled version of R on Windows 7 (64-bit).
> sessionInfo()
R version 2.15.1 (2012-...
2013 Apr 14
1
Problem plotting continuous and discrete series in ggplot with facet
...rt','uempmed','unemploy'))
mcsm <- melt(data.frame(date=economics$date, q=quarters(economics$date)),
id='date')
mcsm$value <- factor(mcsm$value)
ggplot(subm, aes(date, value, col=variable, group=1)) + geom_line() +
facet_grid(variable~., scale='free_y') + geom_step(data=mcsm, aes(date,
value)) + scale_y_discrete(breaks=levels(mcsm$value))
If I leave out scale_y_discrete, R complains that I'm trying to combine
discrete value with continuous scale. If I include scale_y_discreate my
continuous series miss their scale.
Is there any neat way of solving this...
2010 Oct 17
2
dpois().......bizarre warning messages
Dear Masters,
I have a question to submit
consider the following script
m<-4.95
obs<-rpois(36,m) # i generate 36 realization from a poisson(m)
hist(obs,freq=F)
curve(dpois(x,m),add=T,col="red") #i wish to overlay on the histogram the
theorical poisson density function
errors are returned saing the x vector doesn't contain integers....
really bizarre i can't give
2009 Feb 25
0
ggplot2 0.8.2
...ol = 1
* geom_errorbar now works correctly with dashed lines
* geom_path will now silently ignore lines with less than 2 points
(instead of throwing a mysterious error as before)
* geom_path now responds to the size aesthetic once more
* geom_polygon etc now correctly displays linetype on legends
* geom_step now works with multiple groups
* geom_vline and geom_hline: fix bug when mapping intercept to
variable in data frame
* ggsave: path parameter correctly sets path
* guides: fix broken legend from default stat aesthetics (e.g. for stat_sum)
* scale_manual now works better with missing values
* scale_...
2009 Feb 25
0
ggplot2 0.8.2
...ol = 1
* geom_errorbar now works correctly with dashed lines
* geom_path will now silently ignore lines with less than 2 points
(instead of throwing a mysterious error as before)
* geom_path now responds to the size aesthetic once more
* geom_polygon etc now correctly displays linetype on legends
* geom_step now works with multiple groups
* geom_vline and geom_hline: fix bug when mapping intercept to
variable in data frame
* ggsave: path parameter correctly sets path
* guides: fix broken legend from default stat aesthetics (e.g. for stat_sum)
* scale_manual now works better with missing values
* scale_...
2009 Apr 21
0
ggplot2 version 0.8.3
...nteed to be clipped to panel
* facet_wrap: corrected labelling when facetting by multiple variables
(thank to Charlotte Wickham for a clear test case)
* geom_histogram now works with negative weights (provided position =
"identity"). This is useful for creating back to back histograms.
* geom_step: improve legend
* geom_text: better legend
* geom_vline, geom_hline, geom_abline: should work in yet more situations
* resolution: fixed bug in computation of resolution that lead to
(e.g.) incorrect boxplot widths when there was only a single x value
in a group.
* position_stack: fixed bug in dete...
2009 Apr 21
0
ggplot2 version 0.8.3
...nteed to be clipped to panel
* facet_wrap: corrected labelling when facetting by multiple variables
(thank to Charlotte Wickham for a clear test case)
* geom_histogram now works with negative weights (provided position =
"identity"). This is useful for creating back to back histograms.
* geom_step: improve legend
* geom_text: better legend
* geom_vline, geom_hline, geom_abline: should work in yet more situations
* resolution: fixed bug in computation of resolution that lead to
(e.g.) incorrect boxplot widths when there was only a single x value
in a group.
* position_stack: fixed bug in dete...
2008 Jan 11
0
New version of ggplot2: 0.5.7
...ng a powerful model of graphics that makes it easy to produce
complex multi-layered graphics.
Find out more at http://had.co.nz/ggplot2, and check out the over 500
examples of ggplot in use.
ggplot 0.5.7
----------------------------------------
New geoms, scales and aesthetics
* stat_step and geom_step to draw staircase plots (like plot(type="s"))
* order aesthetic (currently only for lines/paths) allows you to
control the drawing order within a group
* scale_manual makes it easier to let ggplot uses the exact
colours/sizes/linetypes that you want
* scale_reverse allows you to rev...
2008 Jan 11
0
New version of ggplot2: 0.5.7
...ng a powerful model of graphics that makes it easy to produce
complex multi-layered graphics.
Find out more at http://had.co.nz/ggplot2, and check out the over 500
examples of ggplot in use.
ggplot 0.5.7
----------------------------------------
New geoms, scales and aesthetics
* stat_step and geom_step to draw staircase plots (like plot(type="s"))
* order aesthetic (currently only for lines/paths) allows you to
control the drawing order within a group
* scale_manual makes it easier to let ggplot uses the exact
colours/sizes/linetypes that you want
* scale_reverse allows you to rev...
2008 Oct 05
0
ggplot2 - version 0.7
...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 of the stairs
* qplot: new asp argument to set aspect ratio
* qplot: now captures the environment in which it was run, which
should make it much more robust at find...
2008 Oct 05
0
ggplot2 - version 0.7
...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 of the stairs
* qplot: new asp argument to set aspect ratio
* qplot: now captures the environment in which it was run, which
should make it much more robust at find...