Learn R Programming

rapportools (version 1.1)

strwidthest: Estimate string width

Description

Pre-computed width of strings without actually calling to graphics and new.plot. The function can only handle base ASCII characters and default width of those is estimated by using standard 12 pt serif on a standard plot. Non-ASCII characters are replaced by an underscore.

Usage

strwidthest(s)

Arguments

s

string

Value

numeric value representing the total width of the provided string in millimeters

Examples

Run this code
# NOT RUN {
strwidthrel('R') # 71
strwidthrel('R is awesome!') # 635
# }

Run the code above in your browser using DataLab