[Rd] plot.TukeyHSD prints funny main titles

From: Joris Meys <jorismeys_at_gmail.com>
Date: Mon, 05 Mar 2012 09:17:44 +0100


Hi,

if you use the plot.TukeyHSD() function with a main argument, that one is printed over the default title 'X% family-wise confidence level'. Try for example:

Model <- aov(count~spray,data=InsectSprays) plot(TukeyHSD(Model),main='HHHHH',las=2)

This doesn't happen with an xlab or ylab argument, as they give errors due to the fact they're specified inside the function already:

function (x, ...)
{

    for (i in seq_along(x)) {

...

        plot(c(xi[, "lwr"], xi[, "upr"]), rep.int(yvals, 2),
            type = "n", axes = FALSE, xlab = "", ylab = "", ...)

...

    }
}

The main title and the xlab are created with the title() function lower in the code. So to avoid a main title being specified twice, I propose to add main="" to the plot statement quoted above.

Cheers
Joris

-- 
Joris Meys
Statistical consultant

Ghent University
Faculty of Bioscience Engineering
Department of Mathematical Modelling, Statistics and Bio-Informatics

tel : +32 9 264 59 87
Joris.Meys_at_Ugent.be
-------------------------------
Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon 05 Mar 2012 - 08:19:17 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 05 Mar 2012 - 17:20:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive