[R] cannot see the y-labels (getting cut-off)
P Ehlers
ehlers at ucalgary.ca
Mon Nov 15 10:42:59 CET 2010
jim holtman wrote:
> increase the margins on the plot:
>
>> par(mar=c(4,7,2,1))
>> plot(1:5,y,ylab='',yaxt='n' );
>> axis(2, at=y, labels=formatC(y,big.mark=",",format="fg"),las=2,cex=0.1);
>>
That's what I would do, but if you want to see how cex works,
use cex.axis=0.5. Check out ?par.
-Peter Ehlers
>
>
> On Sun, Nov 14, 2010 at 6:03 PM,
> <sachinthaka.abeywardana at allianz.com.au> wrote:
>> Hi All,
>>
>> When I run the following code, I cannot see the entire number. As opposed
>> to seeing 1,000,000,000. I only see 000,000 because the rest is cut off.
>>
>> The cex option doesn't seem to be doing anything at all.
>>
>> y<-seq(1e09,5e09,1e09);
>> plot(1:5,y,ylab='',yaxt='n' );
>> axis(2, at=y, labels=formatC(y,big.mark=",",format="fg"),las=2,cex=0.1);
>>
>> Any thoughts?
>>
>> Thanks,
>> Sachin
>> p.s. sorry about corporate notice.
>>
>> --- Please consider the environment before printing this email ---
>>
>> Allianz - Best General Insurance Company of the Year 2010*
>> Allianz - General Insurance Company of the Year 2009+
>>
>> * Australian Banking and Finance Insurance Awards
>> + Australia and New Zealand Insurance Industry Awards
>>
>> This email and any attachments has been sent by Allianz ...{{dropped:3}}
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>
>
More information about the R-help
mailing list