Learn R Programming

lares (version 4.8.4)

autoline: New Line Feed for Long Character Strings

Description

Add a break or new line without breaking words. Automatically, the function can detect your plot's width and will dynamically set an auto width. You can adjust the relation (rel) parameter for different fonts and sizes until perfect harmony found.

Usage

autoline(text, top = "auto", rel = 9.5)

Arguments

text

Character vector.

top

Integer. How many characters aprox should be on each line

rel

Numeric. Relation of pixels and characters per line

See Also

Other Tools: bindfiles(), bring_api(), db_download(), db_upload(), export_plot(), export_results(), get_credentials(), h2o_predict_API(), h2o_predict_MOJO(), h2o_predict_binary(), h2o_predict_model(), h2o_selectmodel(), h2o_update(), haveInternet(), image_metadata(), importxlsx(), ip_country(), iter_seeds(), json2vector(), listfiles(), mailSend(), msplit(), myip(), pass(), quiet(), read.file(), statusbar(), tic(), try_require(), updateLares(), zerovar()

Examples

Run this code
# NOT RUN {
autoline("This is a long text that may not fit into a single line")
autoline("This is a long text that may not fit into a single line", rel = 25)
# }

Run the code above in your browser using DataLab