Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 205372

Bold text in text of the axis in R using TeX()

$
0
0

How to render bold text in plot in R using TeX?

TeX("$\\alpha$")
TeX("The ratio of 1 and 2 is $\\frac{1}{2}$")

a <- 1:100
plot(a, a^2, xlab=TeX("$\\alpha$ bold text"), ylab=TeX("$\\alpha^2$ bold text"))

I tried TeX("$\\alpha$ \textbf{bold text}") and TeX("$\\alpha$ $\textbf{bold text}$") without success


Viewing all articles
Browse latest Browse all 205372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>