[19396] in s-news-athena

home help back first fref pref prev next nref lref last post

[S] Not enough labels on x-axis

daemon@ATHENA.MIT.EDU (=?iso-8859-1?Q?"G=E9rald_Jean"?=)
Mon Oct 4 15:39:56 1999

From: =?iso-8859-1?Q?"G=E9rald_Jean"?= <Gerald.Jean@spgdag.ca>
To: s-news@wubios.wustl.edu
Message-Id: <85256800.00694057.00@mail.spgdag.com>
Date: Mon, 4 Oct 1999 15:32:54 -0400
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit


Dear S+ users,

in the following bit of code I woul like S+ to produce a label for each
tick mark of the x-axis, typically between 2 and 12 for my application, but
when there is more than 5 or 6 tick marks S+ doesn't give me label for all
of them, why and how to force it to do it?  Note that "mylabels" has a
label for each tick mark specified by "at = ".

      plot(c(1:nrow(mat.plot)), mat.plot[,1], type = 'b', col = 1,
              main = paste(names(factors)[i], '-', sinistre, sep = ' '),
              xlab = '',
              ylab = 'Differentiel',
              axes = F,
              ylim = c(-max(mat.plot[,1]), max(mat.plot[,1])))
      axis (side = 1, at = c(1:nrow(mat.plot)), labels =
abbreviate(mylabels,
            minlength = 6), crt = 45)
      axis (side = 2)
      box (n = 1)


Thanks to all,

Gérald Jean
Analyste-conseil (statistiques), Actuariat
télephone            : (418) 835-8839
télecopieur          : (418) 835-5865
courrier électronique: gerald.jean@spgdag.ca

"In God we trust all others must bring data"


-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

home help back first fref pref prev next nref lref last post