[R-SIG-Finance] Change Size of Axis and Labels in chart.RollingPerformance in package PerformanceAnalytics

Peter Carl peter at braverock.com
Tue Aug 16 03:20:23 CEST 2011


par() is your friend, although some of the graphs in PA might ignore
certain settings.  They will probably become more par friendly in the
future...

> par(cex.lab=2)
> charts.RollingPerformance(managers[,1:2])

pcc
-- 
Peter Carl
http://www.braverock.com/~peter

> Sorry for the ambiguity, but I was referring to changing the size of the
> labels on the y-axis "Annualized Return", "Annualized Standard Deviation",
> and "Annualized Sharpe Ratio."
>
> Thanks
>
> On Mon, Aug 15, 2011 at 2:10 PM, Peter Carl <peter at braverock.com> wrote:
>
>> I've attached what I get when I run your example.  Sorry to do this to
>> you, but it works for me:
>>
>> > charts.RollingPerformance(managers, cex.lab = 2, cex.axis=2)
>>
>> Something in your par settings?
>>
>> pcc
>> --
>> Peter Carl
>> http://www.braverock.com/~peter
>>
>> > I'm trying to change the font size of the axis labels in the chart
>> from
>> > "charts.RollingPerformance" in the PerformanceAnalytics package
>> without
>> > any
>> > luck.
>> >
>> > I've tried:
>> >
>> > require(quantmod)
>> > require(PerformanceAnalytics)
>> > data(managers)
>> > # tried various cex options like cex.lab, cex.axis, cex.ylab... none
>> seem
>> > to
>> > work
>> > charts.RollingPerformance(managers, cex.lab = 2, cex.axis=2)
>> >
>> > As you can see from the included picture, the default labels are way
>> too
>> > small. I'm guessing this is something easy but not obvious. Does
>> anyone
>> > know
>> > how to do this?
>> >
>> > Thanks
>> > _______________________________________________
>> > R-SIG-Finance at r-project.org mailing list
>> > https://stat.ethz.ch/mailman/listinfo/r-sig-finance
>> > -- Subscriber-posting only. If you want to post, subscribe first.
>> > -- Also note that this is not the r-help list where general R
>> questions
>> > should go.
>>
>



More information about the R-SIG-Finance mailing list