-
수학적 주석 넣기(Mathematical Annotation in R)R 2018. 11. 7. 12:58
Mathematical Annotation in R
Want to write mathematical symbols and expressions in R graphics? You can use an R
expression()
instead of normal text, e.g.plot(1:10, main = expression(alpha + beta))
. Below is a demo that shows you everything about plotting math in R (it was written by the R Core Team; see?plotmath
for details):Combining expressions and text
If you want to combine multiple mathematical expressions with text, use
paste()
insideexpression()
, as in the following.Finally, if we want to include variables from an R session in mathematical expressions, and substitute in their actual values, we can use
substitute()
.[출처] https://vis.supstat.com/2013/04/mathematical-annotation-in-r/
'R' 카테고리의 다른 글
Two way cross table (0) 2018.11.29 dplyr로 DB 데이터를 다룰 때 여러 테이블을 union 해보자 (0) 2018.11.16 결측값(Missing Value) 처리하기 (0) 2018.11.07 Frequency Table : 빈도표 (0) 2018.11.07 pu (0) 2018.11.05