mat_str_to_expr: Converting to expression for plots

View source: R/misc.R

mat_str_to_exprR Documentation

Converting to expression for plots

Description

Simply add annoying ~ as space, and converts as expression

Usage

mat_str_to_expr(x, echo = FALSE)

Arguments

x

A single charracter string

echo

Print before eval? For de-bugging

Value

An expression

Examples

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 Nov. 13, 2023, 7:53 p.m.