R表达无法显示Mac书

时间:2017-11-21 12:35:57

标签: r ggplot2 expression axis-labels

我正在尝试使用x或y标签中的以下表达式绘制图形: e.g。

qplot(x=rnorm(20), y=rnorm(20))+ 
  ylab("Per mil--> [\u2030]")+ #this works for me
  xlab(expression(paste(delta,""^"13","C [\u2030]"))) #this doesn't work on my Mac and shows: d13C [ U+2030>], where d13C is correctly shown, but the sign for per mil not; on Windows this expression was working

我希望你能帮助我。谢谢!

1 个答案:

答案 0 :(得分:0)

这有用吗?

examplefile = open('example.html')
myfile=examplefile.read()
examplesoup = bs4.BeautifulSoup(myfile)
elem = examplesoup.select('#author')

enter image description here