[R] adding a title to a histogram
2013-10-17 07:39
288 查看
Based on what was told in class, there should be two ways:
Option 1: Adding the title by itself as a single statement, for example, a new line of code:
title("Heart Attack 30-day Death Rate")
Option 2: Adding a "main" part in the hist statement, for example:
hist(outcome[,11], xlab = "30-day Death Rate", main ="Heart Attack 30-day Death Rate")
In RStudio, the first option does not work well, because there were two titles overlapping: the one I added (whether before or after the hist statement, "Heart Attack 30-day Death Rate") and the one the system generated, "Histogram of Outcome[, 11]".
Therefore, the second option might be a better option, at least in RStudio.
Option 1: Adding the title by itself as a single statement, for example, a new line of code:
title("Heart Attack 30-day Death Rate")
Option 2: Adding a "main" part in the hist statement, for example:
hist(outcome[,11], xlab = "30-day Death Rate", main ="Heart Attack 30-day Death Rate")
In RStudio, the first option does not work well, because there were two titles overlapping: the one I added (whether before or after the hist statement, "Heart Attack 30-day Death Rate") and the one the system generated, "Histogram of Outcome[, 11]".
Therefore, the second option might be a better option, at least in RStudio.
相关文章推荐
- 如何发布你的 Maya 应用到欧特克官方的 Exchange Store
- hdu-1212-Big Number
- 同步和异步
- 同步和异步
- Android开发视频学习(2)
- 安全管理器与访问权限
- Windows Phone 修改系统定义的资源颜色
- Leetcode: Balanced Binary Tree
- Leetcode: Integer to Roman
- Leetcode: Best Time to Buy and Sell Stock
- Leetcode: Search a 2D Matrix
- Leetcode: Container With Most Water
- Leetcode: Rotate Image
- Leetcode: Minimum Path Sum
- Leetcode: Generate Parentheses
- 第19章 导航和布局设计模式
- 百度BAE数据库连接问题
- 百度BAE数据库连接问题
- sizeof运算符的学习笔记
- 多列分区