English 中文(简体)
在地契中用斜体字体字表示
原标题:Italic greek letters / latex-style math in plot titles

我愿在R. The

例如,我要印刷一下数学休眠=数学休眠=数学-数学-参数。 在地物名称中,数学温度为0.13美元,并且仍在评估某些变量的价值。 我的最好解决办法是:

lambda <- 4
plot(1:10,1:10)

mtext(bquote(paste(d*bolditalic(x)[italic(t)] == alpha*(theta - bolditalic(x)[italic(t)] )*d*italic(t) +  .(lambda) * d * italic(B)[italic(t)] )), line=2.25,cex=2) 

require(ggplot2)
qplot(1:10, 1:10) + opts(title=bquote(paste(d*bolditalic(x)[italic(t)] == alpha*(theta - bolditalic(x)[italic(t)] )*d*italic(t) +  .(lambda) * d * italic(B)[italic(t)] )), line=2.25,cex=2)

This question almost solves this, but I loose the ability of bquote to display the numerical value of a variable (lambda in my example). Is there a way to combine these so I can have italic greek letters (the standard f或mat f或 variables, e.g. as done by tex) and evaluate at specific values?

Is there a much better way where I can simple write tex-syntax f或 equations and add them to my graphs?

最佳回答

您不妨查看tikzDevice。 http://cran.r-project.org/web/ Packages/tikzDevice/vignettes/tikzDevice.pdf“rel=“noreferer”>its vignette first),其中提供了在R制图中书写LaTeX数学的自然途径。

我还有。 见

另一个例子是:

library(tikzDevice)
library(ggplot2)
tikz( math.tex , standAlone = TRUE, width = 4, height = 4)
qplot(1:10, 1:10, 
  main =  $\mathrm{d} \mathbf{x} = a [\theta - \mathbf{x}] \mathrm{d} t$ )
dev.off()

如果你操作<条码>,可生成:

“latex

问题回答

你们应该ed问你们的问题,而不是分议(我看一下我可以做些什么)。 我有时认为,b 只字面如此深,你需要使用<条码> 替代。 这项工作:

 lambda <- 4
 plot(1:10,1:10)

mtext(substitute(paste(d*bolditalic(x)[italic(t)] == 
                       alpha*group("[", (theta - bolditalic(x)[italic(t)] )*d*italic(t) + 
                        lambda, "]") * d * italic(B)[italic(t)] ), list(lambda=lambda)), 
      line=2.25,cex=2)

该机构还同总公司合作,所有权安排更能:

 qplot(1:10, 1:10) + opts(title=substitute(paste(d*bolditalic(x)[italic(t)] == 
                        alpha*(theta - bolditalic(x)[italic(t)] )*d*italic(t) + 
                         lambda * d * italic(B)[italic(t)] ), list(lambda=lambda)), 
                       line=2.25,cex=2)

“entergraph

“d”至少是“总部”,因为我在提及一套网上晚间例子之后理解你的含义:

http://www.personal.ceu.hu/tex/cookbook.html

http://en.wikipedia.org/wiki/D%27Alembert_operator” rel=“nofollow noreferer”>。 并且未能找到这一点。





相关问题
Why are there duplicate characters in Unicode?

I can see some duplicate characters in Unicode. For example, the character C can be represented by the code points U+0043 and U+0421. Why is this so?

how to extract characters from a Korean string in VBA

Need to extract the initial character from a Korean word in MS-Excel and MS-Access. When I use Left("한글",1) it will return the first syllable i.e 한, what I need is the initial character i.e ㅎ . Is ...

File open error by using codec utf-8 in python

I execute following code on windows xp and python 2.6.4 But it show IOError. How to open file whose name has utf-8 codec. >>> open( unicode( 한글.txt , euc-kr ).encode( utf-8 ) ) Traceback ...

UnicodeEncodeError on MySQL insert in Python

I used lxml to parse some web page as below: >>> doc = lxml.html.fromstring(htmldata) >>> element in doc.cssselect(sometag)[0] >>> text = element.text_content() >>>...

Fast way to filter illegal xml unicode chars in python?

The XML specification lists a bunch of Unicode characters that are either illegal or "discouraged". Given a string, how can I remove all illegal characters from it? I came up with the following ...

热门标签