Learn R Programming

plgraphics (version 1.2)

charSize: Adjust character size to number of observations

Description

Adjusts the character size cex to number of observations

Usage

charSize(n)

Value

A scalar, defining cex

Arguments

n

number of observations

Author

Werner A. Stahel

Details

The function simply applies min(1.5/log10(n), 2)

Examples

Run this code
charSize(20)
for (n in c(10,20,50,100,1000))  print(c(n,charSize(n)))

Run the code above in your browser using DataLab