Displaying 2 results from an estimated 2 matches for "legtxt".
2005 Aug 02
1
multiple scale
...o: 'ts.plot', 'ts', 'legend'.
## Author and date: Hauksson, Bjorn Arnar. March 2004.
## Example:
## First paste this function into the R console or use 'source'.
#library(ts)
#data(UKLungDeaths)
#x <- ldeaths
#y <- fdeaths/mdeaths
#ts.plot.2Axis(x, y)
#legTxt <- c("UK lung deaths", "UK female/male deaths (rhs)")
#legend(1976.5, 3950, legTxt, lty=c(1:2), col=c(1:2), lwd=2, bty="n")
##
ts.plot.2Axis <- function(xleft, xright, digits=1, ticks=5,
mar=(c(4,4,4,4)+0.1), main="",...
2004 Mar 24
0
High/low level: Plot 2 time series with different axis (left and ri ght)
...# See also: 'ts.plot', 'ts', 'legend'.
## Author and date: Hauksson, Bjorn Arnar. March 2004.
## Example:
## First paste this function into the R console or use 'source'.
#library(ts)
#data(UKLungDeaths)
#x <- ldeaths
#y <- fdeaths/mdeaths
#ts.plot.2Axis(x, y)
#legTxt <- c("UK lung deaths", "UK female/male deaths (rhs)")
#legend(1976.5, 3950, legTxt, lty=c(1:2), col=c(1:2), lwd=2, bty="n")
##
ts.plot.2Axis <- function(xleft, xright, digits=1, ticks=5,
mar=(c(4,4,4,4)+0.1), main="",...