[R] horizontal boxplot + xlim
Antje
niederlein-rstat at yahoo.de
Mon Oct 6 16:36:06 CEST 2008
Richard.Cotton at hsl.gov.uk schrieb:
>> I get a strange behaviour of a boxplot with the following code.
>> There seems to
>> be a problem with the xlim-parameter. Did I do anything wrong? What
>> else can I
>> do to force the boxplot to have a defined x-range?
>>
>> x <- rnorm(100)
>> boxplot(x, notch=TRUE, xlab=parameter, xlim <- c(-4,4), horizontal =
> TRUE)
>
> Did you mean xlim = c(-4,4) in that statement, rather than '<-'?
True, I made a mistake here. Still, I have problems to visualize my data (not
the example code I used). I just see a flat line instead a proper plot...
Another example code with creating a strange plot:
x <- rnorm(100) + 100
maxval <- max(x)
boxplot(x, notch=TRUE, xlim = c(0,maxval), horizontal = TRUE)
Any idea?
Antje
>
> Regards,
> Richie.
>
> Mathematical Sciences Unit
> HSL
>
>
> ------------------------------------------------------------------------
> ATTENTION:
>
> This message contains privileged and confidential information intended
> for the addressee(s) only. If this message was sent to you in error,
> you must not disseminate, copy or take any action in reliance on it and
> we request that you notify the sender immediately by return email.
>
> Opinions expressed in this message and any attachments are not
> necessarily those held by the Health and Safety Laboratory or any person
> connected with the organisation, save those by whom the opinions were
> expressed.
>
> Please note that any messages sent or received by the Health and Safety
> Laboratory email system may be monitored and stored in an information
> retrieval system.
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------
> Scanned by MailMarshal - Marshal's comprehensive email content security
> solution. Download a free evaluation of MailMarshal at www.marshal.com
> ------------------------------------------------------------------------
>
More information about the R-help
mailing list