mat_str_to_expr: Converting to expression for plots

Description Usage Arguments Value Examples

View source: R/misc.R

Description

Simply add annoying ~ as space, and converts as expression

Usage

1

Arguments

x

A single charracter string

echo

Print before eval? For de-bugging

Value

An expression

Examples

1
2
3
4
5
6
plot(1)
title(mat_str_to_expr("This is R^2"))
plot(1)
title(mat_str_to_expr(x="This is R^2 in 1%", echo=TRUE))
plot(1)
title(mat_str_to_expr(x="This is R^2 in %", echo=TRUE))

MatthieuStigler/matPkg documentation built on Aug. 10, 2021, 11:01 a.m.