s-news
[Top] [All Lists]

Summary: Problem with mtext in barplot

To: <s-news@lists.biostat.wustl.edu>
Subject: Summary: Problem with mtext in barplot
From: "David Parkhurst" <parkhurs@ariel.ucs.indiana.edu>
Date: Wed, 25 Aug 2004 13:17:55 -0500
References: <002201c489f9$be0a3ae0$6400a8c0@parkhursthome>

I asked:

Problem Description: When I use this command:
 
barplot(my.mtrx,names=c("A","B",""),ylim=c(0,25),
col=c(8,4),angle=c(45,135),density=c(15,15),ylab="",
mtext("Number of Subjects",side = 2, outer = T, cex = 1.8, line = -2))
 
the text comes up in the figure, but:
 
(1) if I try to click on it to edit it, it disappears.  It comes back if I use the "redraw now" command, but I still can't click on it.
 
(2) I can't find that text line at all using the object explorer. Shouldn't it be there?
 
I have the same problems if I issue the mtext command separately, outside the call to barplot, as some have suggested on snews.
 
Please explain where I can find the text line in the object explorer, and how I can edit the text line.

I received kind replies from Steve Riley, Madeline Bauer, Max Zhao, and John Fennick.  Nothing worked easily, but with a lot of fiddling, I finally got an acceptable graph.  I sent this message to support@insightful.com, and they replied that my problems represented a bug, which has now been reported.  They suggested that I use the GUI (ugh).  Incidentally, I am puzzled by Steve Riley?s statement that ?Using the command line to generate graphics creates "uneditable" graph sheets. Only the GUI allows "editable" graphs."  I often create editable graphs from the command line.

Thanks to all.

Dave Parkhurst

<Prev in Thread] Current Thread [Next in Thread>