Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P153: element_rect(size = 2)这句似有问题 #2

Open
aoyh opened this issue May 31, 2013 · 2 comments
Open

P153: element_rect(size = 2)这句似有问题 #2

aoyh opened this issue May 31, 2013 · 2 comments
Labels

Comments

@aoyh
Copy link

aoyh commented May 31, 2013

环境

  • win 7
  • R version 3.0.0
  • ‘ggplot2’ version 0.9.3.1

ggplot2 中文译本P153以下代码运行时,无法出现plot外框线的效果:
第二行: hgram + theme(plot.background = element_rect(size = 2))
第四行:hgram + theme(plot.background = element_rect())

除非在element_rect里多写一句colour = "black"
各位遇到同样的问题不?

@tengfei
Copy link

tengfei commented May 31, 2013

谢谢,这个不知道是疏漏还是ggplot2小的升级导致的错误,需要查看他们的commit log貌似现在默认color是NA也就是透明的,所以应该改为
hgram + theme(plot.background = element_rect(size = 2, color = "black"))
应该就可以了

On Fri, May 31, 2013 at 12:27 AM, Aaron Ouyang notifications@github.comwrote:

环境

  • win 7
  • R version 3.0.0
  • ‘ggplot2’ version 0.9.3.1

ggplot2 中文译本P153第二行代码运行时,无法出现plot外框加粗的效果:
hgram + theme(plot.background = element_rect(size = 2))

各位遇到同样的问题不?


Reply to this email directly or view it on GitHubhttps://github.com//issues/2
.

Tengfei Yin
MCDB PhD student
1620 Howe Hall, 2274,
Iowa State University
Ames, IA,50011-2274

@taiyun taiyun closed this as completed Jun 5, 2013
@taiyun taiyun reopened this Jun 5, 2013
@taiyun
Copy link
Member

taiyun commented Jun 5, 2013

多谢指出!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants