Displaying 1 result from an estimated 1 matches for "asym_matrix".
2012 Oct 03
2
Legend Truncated Using filled.contour
...39;m working on a contour plot depicting asymptomatic prevalence at varying
durations of infectiousness and force of infection. I've been able to work
everything out except for this one - my legend title keeps getting cut off.
Here's what I have:
filled.contour(x=seq(2,30,length.out=nrow(asym_matrix)),
y=seq(1,2,length.out=ncol(asym_matrix)),
asym_matrix,
color = function(x)rev(heat.colors(x)),
plot.title = title(main="Asymptomatic Prevalence in 0-4 Year Olds with\n
Increasing Duration of Infectiousness",
xlab = "Duration of Infectiousness",
ylab = "Relative Force of...