[R] print numbers

David Winsemius dwinsemius at comcast.net
Mon Aug 16 22:36:29 CEST 2010


On Aug 16, 2010, at 4:33 PM, array chip wrote:

> sorry that I didn't give more details, thought it's going to be the  
> same for all
> plots. It's the bxp() for boxplot. I have about couple of 10 such  
> plots in a
> for() loop, so would like to automate the process. Using "labels= "  
> certainly
> works, but it's manual work - plot by plot. Any other suggestions?

?plot.default  # see examples
?axis
?format
?formatC
?sprintf
>
>
> On Aug 16, 2010, at 3:53 PM, array chip wrote:
>
>> Hi,
>>
>> When I plot, the axis ticks are printed as "50.00  25.00  10.00  
>> 1.00  0.05
>> 0.01", is there any way to print them as "50  25  10  1  0.05   
>> 0.01" instead?
>
> No example, so we don't even know which of the three plotting  
> paradigms you
> might be using, but if these are base graphics perhaps something  
> along ht elines
> of:
>
>  ... , labels =c("50",  "25",  "10",  "1",  "0.05",  "0.01"), ...
>
> --David Winsemius, MD
> West Hartford, CT
>
>
>
>

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list