Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nice legend for graphs #24

Open
wants to merge 96 commits into
base: enhancement
Choose a base branch
from
Open

nice legend for graphs #24

wants to merge 96 commits into from

Conversation

dutangc
Copy link

@dutangc dutangc commented Apr 2, 2016

niceleg <- function(n, ylim=c(-10, 2), poly.x=c(112, 114), text.x=104, text.y, text.lab=floor(seq(1816, 2013, length=5)))
{
col <- rainbow(1.25_n) #used in plot.fds
y <- seq(ylim[1], ylim[2], length=2_n+1)
for(i in 1:n)
polygon(c(poly.x[1],poly.x[1],poly.x[2],poly.x[2]), c(y[2_i-1], y[2_i+1], y[2_i+1], y[2_i-1]), border=NA, col=col[i])
if(missing(text.y))
text.y <- seq(y[2], y[2*n], length=length(text.lab))
text(text.x, text.y, text.lab)
}

france <- read.demogdata(file="Mx_1x1.txt", popfile="Exposures_1x1.txt", type="mortality", label="France")
plot(france, series="male", main="France, Tx mortalite, Homme")
niceleg(length(france$year))

robjhyndman and others added 30 commits April 6, 2014 16:10
You may also want to update the authors section, not sure if this is necessary with CRAN changes.
Fixed CRAN import issues with forecast 8.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants