Thanks again,
I like the idea of adding transparency. I will try it. For now, I resigned
myself to add points to the original barplot using points as such:
plotV<-barplot(Value[,1],space=0)
dev.off()
par(mar=c(4,5,3,1))
barplot(Value[,1],space=0, col="grey30",axis.lty=2)
points(plotV, sampledept
Why dont you plot a stacked barplot with the two values for each depth
(or whatever is on the x axis) besides each other? Another option would
be to add transparency to the fill color of the plot (col=rgb(1,1,1,0.5)).
On 07/29/2011 05:21 PM, Colin Bergeron wrote:
Thanks Jannis,
I am including
Thanks Jannis,
I am including an example code of what I am trying to do:
par(mar=c(4,5,3,1))
barplot(Value[,1],space=0, col="grey30",axis.lty=2)
barplot(sampledepth[,1]/2, space=0, col="grey30", inside=FALSE,
add=TRUE)
sampledepth is divided by two to have the same axis scale as Valu
Dear Collin,
as always, a reproducible example code would help us to understand what
you want to do. This way I can only guess
And my guess would be that it is much easier to use:
par(new=TRUE)
and to superimpose the barplot with whatever curve you want to include.
You may need to set
Dear list,
I want to plot a sample depth curve over a barplot. It would be perfect if
the argument "inside" in the barplot function would be functional, cause I
could just add this curve to the actual barplot, but it seems like it is not
(not yet implemented). Argument "inside" would allow not to
5 matches
Mail list logo