Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

font size in chart.correlation (performanceAnalytics)

I use and like the function chart.correlation (package: PerformanceAnalytics), however the entanglement of the coefficient's font size with the correlation extent is unpleasant, leading to unreadable numbers.

Can anyone tell me whether it's possible to change/fix the font size of the coefficients in the graph? I'd like them all to have the same size. Here's an example of what I mean:

enter image description here

like image 436
Phippsi Nocheinmal Avatar asked Oct 26 '25 01:10

Phippsi Nocheinmal


1 Answers

try this:

trace("chart.Correlation", edit=T) #to edit function

then in line 17, change the cex value for what you want, i changed it for 3

 cex <- 3

then run the function

chart.Correlation(df_corr, histogram = F, method = c("pearson")) 

#the end

like image 117
Maximiliano Verocai Avatar answered Oct 29 '25 18:10

Maximiliano Verocai



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!