I have a twoord
plot produced with the plotrix
package and would like to add a horizontal line representing a particular value to it. The plot is all set up but I need help adding the line.
Here is some sample code:
fake <- matrix(c(1, 2, 3, 4, 5, 22, 30, 47, 98, 62, 20, 40, 10, 15, 15), nrow = 5)
fake <- as.data.frame(m)
horizontallineat <- 50
twrd.p <- twoord.plot(fake$V1,fake$V3,fake$V1,fake$V2, xlab="Bin",
lylim=c(0,100),rylim=c(0,100),type=c("bar","l"),
ylab="Exposure Percentage",rylab="Bin Average PP",
lytickpos=seq(0,100, by = 10),
rytickpos=seq(0,100, by = 10),
ylab.at=50,rylab.at=50,
main="Variable Name",
lcol=3,rcol=4)
This is the plot
Thank you in advance for any insight you are able to offer.