Posts filed under 'Uncategorized'

Check to See If File Exists in Python

import os
os.path.exists(fileName)

This returns a boolean value.

1 comment July 11, 2008

Increase the Text Size on Axes of Plots in R

An easy way to do this is to use the cex.lab parameter of the plot (or barplot, etc.) function. The abbreviation cex stands for character expansion. If you set this value to 2, the characters will be twice as large as they will be if you don’t set this.

Similarly, you can modify the size of the text labels on the axis using cex.axis and cex.names.

barplot(x,
ylab=’Proportion’,
cex.names=2.0,
cex.axis=2.0,
cex.lab=2.0
)

Add comment July 11, 2008


Categories

Archives

Top Posts