-
Notifications
You must be signed in to change notification settings - Fork 18
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
数据可视化:框架 #4
Merged
Merged
数据可视化:框架 #4
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
* 用注释图层 `annotate()` 添加 0.95 的刻度注释,添加图层 `coord_cartesian(clip = 'off')` 使得注释文本可以超出绘图区域,不被吃掉
XiangyunHuang
commented
Sep 15, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ggplot2 中的统计图层 stat_ellipse 的实现来自 car::dataEllipse
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
数据方面
data/
存放整理后的 rds 格式的数据文件。原始数据文件放在本地目录data-raw/
下,且不上传,相比于整理后的数据集,它们大得多。软件方面
而在版本 3.4.0 之前,如果使用 linewidth 会报警告问题 Warning: Ignoring unknown parameters: linewidth 详见 Rename size aesthetic for line-based geoms tidyverse/ggplot2#3672
cols_width()
目前不支持 LaTeX 输出 Column widths not porting to LaTeX rstudio/gt#634size
argument ofelement_rect()
is deprecated as of ggplot2 3.4.0. jbryer/likert#127风格方面
内容方面
数据可视化可以分两章写,一章以基础知识为主,一章以常用统计图形为主。其它种类繁多的统计图形,暂不放入本章,否则本章内容太多,目前编译出来的已有40多页。其次,掌握基础知识后,其他统计图形不过是一些统计图层的组合,基础知识的综合运用。注意围绕一个主题「过去 25 年,开源统计软件 R 的发展史」介绍统计图形还是选用一些经济社会数据好,更加真实更加相关,给读者以了解社会现状的感觉,吸引人入坑数据分析。