Skip to content

"legend" command does nothing

7 messages · Gruber, Susan, Adrian, Simon Urbanek

#
Hi Adrian,

I just tried out your plot code as written, except for adding the first
three lines below to generate x and Y data, and the legend prints
correctly. So I agree this points to a font problem.


   Y <- matrix(1:28, nrow=7)
   x <- 1:7
   ttext="plot title"

   matplot(x,Y,xlab="N(t)",ylab="log{N(t+1)/N(t)}",main=ttext,
   type=c("p","l","l","l","l"),pch=21,col=c("black","blue","green","red",
   "purple"),lty=1,lwd=2,family="sans")

   legend("topright",c("Data","DI model","Ricker","Theta Logistic","Allee"),
   pch=c(21,-1,-1,-1),col=c("black","blue","green","red","purple"),
   lty=c("blank","solid","solid","solid","solid"),lwd=2,plot=TRUE)

--Susan
#
Adrian,

missing fonts have cropped up a few times - so far the most common cause were broken fonts - please check your Font Book for duplicate or broken fonts (most specifically Arial). Please let me know if that was the cause.

Thanks,
Simon
On Sep 18, 2010, at 7:35 AM, Adrian wrote:

            
#
On Sep 18, 2010, at 9:16 PM, Adrian wrote:

            
But do you have a working Arial and Helvetica when you look in your font book? Sometime the fonts can be broken ...

Cheers,
Simon