How to use R language drawing to realize the mixed splicing of formula and variable object
This article mainly explains "how to use R language drawing to realize the mixed stitching of formulas and variable objects". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "how to use R language drawing to achieve mixed stitching of formulas and variable objects"!
When we draw in R, if it comes to the presentation of mathematical or statistical formulas, we can use the function: _ expression (), and combined with paste (), we can easily show the formula we want to show. For more information, please refer to:
R outputs Greek characters, superscripts, subscripts and mathematical formulas when drawing
But this will encounter a problem, when we want to batch produce a large number of titles with different variable values, if we encounter a mixed output of variables and formulas, there is no way to output the values in the variables (not with functions such as do.call ()).
Take a chestnut, if m