Have you considered using the lattice-style panel functions that
hexbin provides:
mixdata <-
data.frame(x = c(rnorm(5000),rnorm(5000,4,1.5)),
y = c(rnorm(5000),rnorm(5000,2,3)),
a = gl(2, 5000))
hexbinplot(y ~ x, mixdata, aspect = 1,
panel=function(x, y, ...){
panel.hexbinplot(x,y,...)
panel.abline(v=c(-1,0,1), h=c(-1,0,1), col='red', lwd=3)
},
trans = sqrt, inv = function(x) x^2)
On Sat, Jan 3, 2009 at 12:43 PM, Rodrigo Fernandes Ramalho
<rofera at ig.com.br> wrote:> Hello,
>
> I would like some help to plot a vertical line on a scatterplot build with
> hexbin package.
>
> I just need to plot a vertical line on the graph to mark a threshold value
> on x axis.
>
> It would be better if the parameter of the plot line function respect
> the x axis scale.
>
> Thanks,
>
> Rodrigo
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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, reproducible code.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem that you are trying to solve?