search for: stat_identity

Displaying 3 results from an estimated 3 matches for "stat_identity".

2011 Jun 08
1
The simplest bar graph with ggplot is difficult to realize
Dear all, What is the simplest way of producing a bar graph using ggplot but avoiding calling qplot? That is, given: d <- data.frame(x=seq(1,5), y=seq(1,5)) Why does the following line return an error? ggplot(d, aes(x=x, y=y)) + stat_identity() + geom_bar(bindwidth=1) Thanks in advance, jcb!
2012 Apr 05
1
issue with base:::namespaceImportMethods
...le is the ggbio package in Bioconductor, which currently emits these warnings when its namespace is loaded: ---------------------- library(ggbio) Loading required package: ggplot2 Attaching package: ‘ggbio’ The following object(s) are masked from ‘package:ggplot2’: geom_rect, geom_segment, stat_identity, xlim Warning messages: 1: found methods to import for function ‘append’ but not the generic itself 2: found methods to import for function ‘as.factor’ but not the generic itself 3: found methods to import for function ‘as.list’ but not the generic itself 4: found methods to import for function ‘a...
2007 Sep 27
3
Plotting from different data sources on the same plot (with ggplot2)
Hello everyone (and Hadley in particular), I often need to plot data from multiple datasets on the same graph. A common example is when mapping some values: I want to plot the underlying map and then add the points. I currently do it with base graphics, by recording the maximum region in which my map+point will fit, plotting both with these xlim and ylim parameters, adding par (new=T)