{"id":506,"date":"2023-07-29T16:40:17","date_gmt":"2023-07-29T16:40:17","guid":{"rendered":"https:\/\/statorials.org\/cn\/%e6%9c%80%e5%a5%bd%e7%9a%84-ggplot2-%e4%b8%bb%e9%a2%98\/"},"modified":"2023-07-29T16:40:17","modified_gmt":"2023-07-29T16:40:17","slug":"%e6%9c%80%e5%a5%bd%e7%9a%84-ggplot2-%e4%b8%bb%e9%a2%98","status":"publish","type":"post","link":"https:\/\/statorials.org\/cn\/%e6%9c%80%e5%a5%bd%e7%9a%84-ggplot2-%e4%b8%bb%e9%a2%98\/","title":{"rendered":"\u6700\u4f73 ggplot2 \u4e3b\u9898\u7684\u5b8c\u6574\u6307\u5357"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\u672c\u6559\u7a0b\u63d0\u4f9b\u4e86\u6700\u4f73 ggplot2 \u4e3b\u9898\u7684\u5b8c\u6574\u6307\u5357\uff0c\u5305\u62ec\uff1a<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">\u5982\u4f55\u4f7f\u7528\u5185\u7f6e ggplot2 \u4e3b\u9898\u66f4\u6539\u7ed8\u56fe\u7684\u5916\u89c2\u3002<\/span><\/li>\n<li><span style=\"color: #000000;\">\u5982\u4f55\u4f7f\u7528<em>ggthemes<\/em>\u5e93\u4e2d\u7684\u9884\u5b9a\u4e49\u4e3b\u9898\u66f4\u6539\u7ed8\u56fe\u7684\u5916\u89c2\u3002<\/span><\/li>\n<li><span style=\"color: #000000;\">\u5982\u4f55\u7f16\u8f91\u4e3b\u9898\u7684\u7279\u5b9a\u7ec4\u4ef6\uff0c\u5305\u62ec\u8def\u5f84\u9762\u677f\u80cc\u666f\u548c\u7f51\u683c\u7ebf\u3002<\/span><\/li>\n<\/ul>\n<h2><span style=\"color: #000000;\"><strong>\u5982\u4f55\u4f7f\u7528\u5185\u7f6e ggplot2 \u4e3b\u9898\u66f4\u6539\u7ed8\u56fe\u5916\u89c2<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u5bf9\u4e8e\u4ee5\u4e0b\u6bcf\u4e2a\u793a\u4f8b\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u5d4c\u5165\u5f0f R \u6570\u636e\u96c6\u4e2d\u7684 iris\uff1a<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#view first six rows of <em>iris<\/em> dataset<\/span>\nhead(iris)\n\n  Sepal.Length Sepal.Width Petal.Length Petal.Width Species\n1 5.1 3.5 1.4 0.2 setosa\n2 4.9 3.0 1.4 0.2 setosa\n3 4.7 3.2 1.3 0.2 setosa\n4 4.6 3.1 1.5 0.2 setosa\n5 5.0 3.6 1.4 0.2 setosa\n6 5.4 3.9 1.7 0.4 setosa<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u9996\u5148\uff0c\u6211\u4eec\u5c06\u52a0\u8f7d<em>ggplot2<\/em>\u5e93\u5e76\u521b\u5efa\u4e00\u4e2a\u6563\u70b9\u56fe\uff0c\u8be5\u6563\u70b9\u56fe\u5728 x \u8f74\u4e0a\u663e\u793a<em>Sepal.Length<\/em> \uff0c\u5728 y \u8f74\u4e0a<em>\u663e\u793a Sepal.Width<\/em> \uff0c\u5e76<\/span><span style=\"color: #000000;\">\u6839\u636e\u7269\u79cd\u7740\u8272\uff1a<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#load <em>ggplot2<\/em> library<\/span>\nlibrary(ggplot2)\n\n<span style=\"color: #008080;\">#create scatterplot\n<\/span>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point()<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u5c55\u793a\u6bcf\u4e2a\u5185\u7f6e ggplot2 \u4e3b\u9898\u5982\u4f55\u5f71\u54cd\u7ed8\u56fe\u7684\u5916\u89c2\u3002<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>\u7070\u8272\u4e3b\u9898<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u9ed8\u8ba4\u4e3b\u9898\uff0c\u7070\u8272\u80cc\u666f\u548c\u767d\u8272\u7f51\u683c\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() <span style=\"color: #800080;\">+\n  theme_gray()<\/span><\/strong><\/pre>\n<h2> <span style=\"color: #000000;\"><strong>bw_\u4e3b\u9898<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u9ed1\u767d\u4e3b\u9898\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() <span style=\"color: #800080;\">+\n  theme_bw()<\/span><\/strong><\/pre>\n<h2><strong><span style=\"color: #000000;\">\u4e3b\u9898_linedraw<\/span><\/strong><\/h2>\n<p><span style=\"color: #000000;\">\u767d\u8272\u80cc\u666f\u4e0a\u53ea\u6709\u4e0d\u540c\u5bbd\u5ea6\u7684\u9ed1\u8272\u7ebf\u6761\u7684\u4e3b\u9898\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() <span style=\"color: #800080;\">+\n  theme_linedraw()<\/span><\/strong><\/pre>\n<h2><\/h2>\n<h2><span style=\"color: #000000;\"><strong>\u4e3b\u9898\u706f<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u4e0e<strong>theme_linedraw<\/strong>\u7c7b\u4f3c\u7684\u4e3b\u9898\uff0c\u4f46\u5177\u6709\u7070\u8272\u7ebf\u6761\u548c\u8f74\uff0c\u65e8\u5728\u5438\u5f15\u66f4\u591a\u4eba\u5bf9\u6570\u636e\u7684\u5173\u6ce8\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() <span style=\"color: #800080;\">+\n  theme_light()<\/span><\/strong><\/pre>\n<h2><\/h2>\n<h2><span style=\"color: #000000;\"><strong>\u9ed1\u6697\u4e3b\u9898<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u4e0e<strong>theme_light<\/strong>\u7c7b\u4f3c\u7684\u4e3b\u9898\uff0c\u4f46\u80cc\u666f\u4e3a\u6df1\u8272\u3002\u4e00\u4e2a\u6709\u7528\u7684\u4e3b\u9898\uff0c\u53ef\u4ee5\u5448\u73b0\u7cbe\u7f8e\u7684\u5f69\u8272\u7ebf\u6761\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() <span style=\"color: #800080;\">+\n  theme_dark()<\/span><\/strong><\/pre>\n<h2><\/h2>\n<h2><span style=\"color: #000000;\"><strong>\u6700\u5c0f\u4e3b\u9898<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u6ca1\u6709\u80cc\u666f\u6ce8\u91ca\u7684\u4e3b\u9898\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() <span style=\"color: #800080;\">+\n  theme_minimal()<\/span><\/strong><\/pre>\n<h2><\/h2>\n<h2><span style=\"color: #000000;\"><strong>\u7ecf\u5178\u4e3b\u9898<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u6ca1\u6709\u7f51\u683c\u7684\u4e3b\u9898\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() <span style=\"color: #800080;\">+\n  theme_classic()<\/span><\/strong><\/pre>\n<h2><\/h2>\n<h2><strong><span style=\"color: #000000;\">\u4e3b\u9898\u65e0\u6548<\/span><\/strong><\/h2>\n<p><span style=\"color: #000000;\">\u4e00\u4e2a\u5b8c\u5168\u7a7a\u6d1e\u7684\u4e3b\u9898\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() <span style=\"color: #800080;\">+\n  theme_void()<\/span><\/strong><\/pre>\n<h2><\/h2>\n<h2><strong><span style=\"color: #000000;\">\u5982\u4f55\u4f7f\u7528 ggthemes \u5e93\u4e2d\u7684\u9884\u5b9a\u4e49\u4e3b\u9898\u66f4\u6539\u7ed8\u56fe\u7684\u5916\u89c2<\/span><\/strong><\/h2>\n<p><span style=\"color: #000000;\">\u9664\u4e86\u4f7f\u7528\u5185\u7f6e\u7684 ggplot2 \u4e3b\u9898\u4e4b\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528 ggthemes \u5e93\u4e2d\u7684\u9884\u5b9a\u4e49\u4e3b\u9898\u6765\u6539\u53d8\u7ed8\u56fe\u7684\u7f8e\u89c2\u6027\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u9996\u5148\uff0c\u6211\u4eec\u5c06\u52a0\u8f7d ggthemes \u5e93\uff1a<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>library(ggthemes)<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u7136\u540e\uff0c\u6211\u4eec\u5c06\u5c55\u793a\u4e00\u4e9b\u4f7f\u7528\u9884\u5b9a\u4e49\u4e3b\u9898\u6765\u4fee\u6539\u7ed8\u56fe\u7f8e\u611f\u7684\u793a\u4f8b\uff1a<\/span><\/p>\n<h2><strong><span style=\"color: #000000;\">\u4e3b\u9898_WSJ<\/span><\/strong><\/h2>\n<p> <span style=\"color: #000000;\">\u300a\u534e\u5c14\u8857\u65e5\u62a5\u300b\u7684\u4e3b\u9898\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() <span style=\"color: #800080;\">+\n  theme_wsj()<\/span><\/strong><\/pre>\n<h2><span style=\"color: #000000;\"><strong>\u4e3b\u9898_\u7c07<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u6781\u7b80\u4e3b\u4e49\u4e3b\u9898\u7684\u7075\u611f\u6e90\u81ea\u7edf\u8ba1\u5b66\u5bb6\u7231\u5fb7\u534e\u00b7\u5854\u592b\u7279 (Edward Tufte) \u7684\u4f5c\u54c1\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() <span style=\"color: #800080;\">+\n  theme_tufte()<\/span><\/strong><\/pre>\n<h2><\/h2>\n<h2><span style=\"color: #000000;\"><strong>\u65e5\u6652\u4e3b\u9898<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u4f7f\u7528\u57fa\u4e8e<a href=\"https:\/\/en.wikipedia.org\/wiki\/Solarized_(color_scheme)\" target=\"_blank\" rel=\"noopener\">Solarized Palette \u7684<\/a>\u989c\u8272\u7684\u4e3b\u9898\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() <span style=\"color: #800080;\">+\n  theme_solarized()<\/span><\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u8bf7\u6ce8\u610f\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528<strong>light = FALSE<\/strong>\u53c2\u6570\u5728\u7ed8\u56fe\u4e0a\u4f7f\u7528\u6df1\u8272\u80cc\u666f\uff1a<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() +\n  theme_solarized( <span style=\"color: #800080;\">light = FALSE<\/span> )<\/strong><\/pre>\n<h2><\/h2>\n<h2><span style=\"color: #000000;\"><strong>\u4e3b\u9898_gdocs<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u9ed8\u8ba4\u5e26\u6709 Google Docs Chart \u7684\u4e3b\u9898\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() <span style=\"color: #800080;\">+\n  theme_gdocs()<\/span><\/strong><\/pre>\n<h2><\/h2>\n<h2><span style=\"color: #000000;\"><strong>\u4e3b\u9898_ Fivethirtyeight<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u4e3b\u9898\u7075\u611f\u6765\u81ea<a href=\"https:\/\/fivethirtyeight.com\/\" target=\"_blank\" rel=\"noopener\">Fivethirtyeight.com<\/a>\u7684\u60c5\u8282\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() <span style=\"color: #800080;\">+\n  theme_fivethirtyeight()<\/span><\/strong><\/pre>\n<h2><\/h2>\n<h2><span style=\"color: #000000;\"><strong>\u4e3b\u9898\u7ecf\u6d4e\u5b66\u5bb6<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u4e3b\u9898\u7075\u611f\u6765\u81ea\u300a\u7ecf\u6d4e\u5b66\u4eba\u300b\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() <span style=\"color: #800080;\">+\n  theme_economist()<\/span><\/strong><\/pre>\n<h2><\/h2>\n<h2><strong><span style=\"color: #000000;\">\u5982\u4f55\u7f16\u8f91\u7ed8\u56fe\u7684\u7279\u5b9a\u7ec4\u4ef6<\/span><\/strong><\/h2>\n<p><span style=\"color: #000000;\">\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<strong>theme()<\/strong>\u548c<strong>element_rect()<\/strong>\u51fd\u6570\u6765\u66f4\u6539\u7ed8\u56fe\u9762\u677f\u7684\u80cc\u666f\u989c\u8272\uff1a<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>theme(panel.background = element_rect(fill, color, size))<\/strong><\/pre>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>fill\uff1a<\/strong>\u77e9\u5f62\u7684\u586b\u5145\u989c\u8272<\/span><\/li>\n<li><span style=\"color: #000000;\"><strong>\u989c\u8272\uff1a<\/strong>\u8fb9\u6846\u989c\u8272<\/span><\/li>\n<li><span style=\"color: #000000;\"><strong>\u5c3a\u5bf8\uff1a<\/strong>\u8fb9\u6846\u5c3a\u5bf8<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528<strong>element_line()<\/strong>\u51fd\u6570\u6765\u66f4\u6539\u7f51\u683c\u7684\u5927\u5c0f\u548c\u5916\u89c2\uff1a<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>theme(panel.grid.major = element_line(color, size, linetype),\n      panel.grid.minor = element_line(color, size, linetype))<\/strong><\/pre>\n<ul>\n<li><span style=\"color: #000000;\"><strong>\u989c\u8272\uff1a<\/strong>\u8fb9\u6846\u989c\u8272<\/span><\/li>\n<li><span style=\"color: #000000;\"><strong>\u5c3a\u5bf8\uff1a<\/strong>\u8fb9\u6846\u5c3a\u5bf8<\/span><\/li>\n<li><span style=\"color: #000000;\"><strong>linetype\uff1a<\/strong>\u7ebf\u578b\uff08\u201c\u7a7a\u767d\u201d\u3001\u201c\u5b9e\u7ebf\u201d\u3001\u201c\u865a\u7ebf\u201d\u3001\u201c\u70b9\u7ebf\u201d\u3001\u201c\u70b9\u5212\u7ebf\u201d\u3001\u201c\u957f\u5212\u7ebf\u201d\u3001\u201c\u53cc\u5212\u7ebf\u201d\uff09<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u4ee3\u7801\u6f14\u793a\u4e86\u5982\u4f55\u5220\u9664\u7ed8\u56fe\u9762\u677f\u8fb9\u6846\u548c\u7f51\u683c\u7ebf\uff1a<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() <span style=\"color: #800080;\">+\n  theme(panel.border = element_blank(),\n  panel.grid.major = element_blank(),\n  panel.grid.minor = element_blank())<\/span><\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u4ee3\u7801\u6f14\u793a\u4e86\u5982\u4f55\u66f4\u6539\u7ed8\u56fe\u9762\u677f\u80cc\u666f\u548c\u7f51\u683c\u7ebf\uff1a<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +\n  geom_point() +\n  theme(\n    panel.background = element_rect(fill = \"powderblue\",\n    color = \"powderblue\",\n    size = 0.5, linetype = \"solid\"),\n    panel.grid.major = element_line(size = 0.5, linetype = 'solid', color = \"white\"),\n    panel.grid.minor = element_line(size = 0.25, linetype = 'solid', color = \"white\")\n  )<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6559\u7a0b\u63d0\u4f9b\u4e86\u6700\u4f73 ggplot2 \u4e3b\u9898\u7684\u5b8c\u6574\u6307\u5357\uff0c\u5305\u62ec\uff1a \u5982\u4f55\u4f7f\u7528\u5185\u7f6e ggplot2 \u4e3b\u9898\u66f4\u6539\u7ed8\u56fe\u7684\u5916\u89c2\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-506","post","type-post","status-publish","format-standard","hentry","category-11"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6700\u4f73 ggplot2 \u4e3b\u9898\u7684\u5b8c\u6574\u6307\u5357 \u2013 Statorials<\/title>\n<meta name=\"description\" content=\"\u7efc\u5408\u6307\u5357\uff0c\u4e3e\u4f8b\u8bf4\u660e\u5982\u4f55\u4f7f\u7528\u6700\u4f73 ggplot2 \u4e3b\u9898\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/cn\/\u6700\u597d\u7684-ggplot2-\u4e3b\u9898\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6700\u4f73 ggplot2 \u4e3b\u9898\u7684\u5b8c\u6574\u6307\u5357 \u2013 Statorials\" \/>\n<meta property=\"og:description\" content=\"\u7efc\u5408\u6307\u5357\uff0c\u4e3e\u4f8b\u8bf4\u660e\u5982\u4f55\u4f7f\u7528\u6700\u4f73 ggplot2 \u4e3b\u9898\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/cn\/\u6700\u597d\u7684-ggplot2-\u4e3b\u9898\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-29T16:40:17+00:00\" \/>\n<meta name=\"author\" content=\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/cn\/%e6%9c%80%e5%a5%bd%e7%9a%84-ggplot2-%e4%b8%bb%e9%a2%98\/\",\"url\":\"https:\/\/statorials.org\/cn\/%e6%9c%80%e5%a5%bd%e7%9a%84-ggplot2-%e4%b8%bb%e9%a2%98\/\",\"name\":\"\u6700\u4f73 ggplot2 \u4e3b\u9898\u7684\u5b8c\u6574\u6307\u5357 \u2013 Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/cn\/#website\"},\"datePublished\":\"2023-07-29T16:40:17+00:00\",\"dateModified\":\"2023-07-29T16:40:17+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\"},\"description\":\"\u7efc\u5408\u6307\u5357\uff0c\u4e3e\u4f8b\u8bf4\u660e\u5982\u4f55\u4f7f\u7528\u6700\u4f73 ggplot2 \u4e3b\u9898\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/cn\/%e6%9c%80%e5%a5%bd%e7%9a%84-ggplot2-%e4%b8%bb%e9%a2%98\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/cn\/%e6%9c%80%e5%a5%bd%e7%9a%84-ggplot2-%e4%b8%bb%e9%a2%98\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/cn\/%e6%9c%80%e5%a5%bd%e7%9a%84-ggplot2-%e4%b8%bb%e9%a2%98\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6700\u4f73 ggplot2 \u4e3b\u9898\u7684\u5b8c\u6574\u6307\u5357\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/cn\/#website\",\"url\":\"https:\/\/statorials.org\/cn\/\",\"name\":\"Statorials\",\"description\":\"\u60a8\u7684\u7edf\u8ba1\u7d20\u517b\u6307\u5357\uff01\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/cn\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\",\"name\":\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\"},\"description\":\"\u5927\u5bb6\u597d\uff0c\u6211\u662f\u672c\u6770\u660e\uff0c\u4e00\u4f4d\u9000\u4f11\u7684\u7edf\u8ba1\u5b66\u6559\u6388\uff0c\u540e\u6765\u6210\u4e3a Statorials \u7684\u70ed\u5fc3\u6559\u5e08\u3002 \u51ed\u501f\u5728\u7edf\u8ba1\u9886\u57df\u7684\u4e30\u5bcc\u7ecf\u9a8c\u548c\u4e13\u4e1a\u77e5\u8bc6\uff0c\u6211\u6e34\u671b\u5206\u4eab\u6211\u7684\u77e5\u8bc6\uff0c\u901a\u8fc7 Statorials \u589e\u5f3a\u5b66\u751f\u7684\u80fd\u529b\u3002\u4e86\u89e3\u66f4\u591a\",\"sameAs\":[\"https:\/\/statorials.org\/cn\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6700\u4f73 ggplot2 \u4e3b\u9898\u7684\u5b8c\u6574\u6307\u5357 \u2013 Statorials","description":"\u7efc\u5408\u6307\u5357\uff0c\u4e3e\u4f8b\u8bf4\u660e\u5982\u4f55\u4f7f\u7528\u6700\u4f73 ggplot2 \u4e3b\u9898\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/cn\/\u6700\u597d\u7684-ggplot2-\u4e3b\u9898\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6700\u4f73 ggplot2 \u4e3b\u9898\u7684\u5b8c\u6574\u6307\u5357 \u2013 Statorials","og_description":"\u7efc\u5408\u6307\u5357\uff0c\u4e3e\u4f8b\u8bf4\u660e\u5982\u4f55\u4f7f\u7528\u6700\u4f73 ggplot2 \u4e3b\u9898\u3002","og_url":"https:\/\/statorials.org\/cn\/\u6700\u597d\u7684-ggplot2-\u4e3b\u9898\/","og_site_name":"Statorials","article_published_time":"2023-07-29T16:40:17+00:00","author":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/cn\/%e6%9c%80%e5%a5%bd%e7%9a%84-ggplot2-%e4%b8%bb%e9%a2%98\/","url":"https:\/\/statorials.org\/cn\/%e6%9c%80%e5%a5%bd%e7%9a%84-ggplot2-%e4%b8%bb%e9%a2%98\/","name":"\u6700\u4f73 ggplot2 \u4e3b\u9898\u7684\u5b8c\u6574\u6307\u5357 \u2013 Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/cn\/#website"},"datePublished":"2023-07-29T16:40:17+00:00","dateModified":"2023-07-29T16:40:17+00:00","author":{"@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261"},"description":"\u7efc\u5408\u6307\u5357\uff0c\u4e3e\u4f8b\u8bf4\u660e\u5982\u4f55\u4f7f\u7528\u6700\u4f73 ggplot2 \u4e3b\u9898\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/cn\/%e6%9c%80%e5%a5%bd%e7%9a%84-ggplot2-%e4%b8%bb%e9%a2%98\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/cn\/%e6%9c%80%e5%a5%bd%e7%9a%84-ggplot2-%e4%b8%bb%e9%a2%98\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/cn\/%e6%9c%80%e5%a5%bd%e7%9a%84-ggplot2-%e4%b8%bb%e9%a2%98\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/cn\/"},{"@type":"ListItem","position":2,"name":"\u6700\u4f73 ggplot2 \u4e3b\u9898\u7684\u5b8c\u6574\u6307\u5357"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/cn\/#website","url":"https:\/\/statorials.org\/cn\/","name":"Statorials","description":"\u60a8\u7684\u7edf\u8ba1\u7d20\u517b\u6307\u5357\uff01","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/cn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261","name":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a"},"description":"\u5927\u5bb6\u597d\uff0c\u6211\u662f\u672c\u6770\u660e\uff0c\u4e00\u4f4d\u9000\u4f11\u7684\u7edf\u8ba1\u5b66\u6559\u6388\uff0c\u540e\u6765\u6210\u4e3a Statorials \u7684\u70ed\u5fc3\u6559\u5e08\u3002 \u51ed\u501f\u5728\u7edf\u8ba1\u9886\u57df\u7684\u4e30\u5bcc\u7ecf\u9a8c\u548c\u4e13\u4e1a\u77e5\u8bc6\uff0c\u6211\u6e34\u671b\u5206\u4eab\u6211\u7684\u77e5\u8bc6\uff0c\u901a\u8fc7 Statorials \u589e\u5f3a\u5b66\u751f\u7684\u80fd\u529b\u3002\u4e86\u89e3\u66f4\u591a","sameAs":["https:\/\/statorials.org\/cn"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/comments?post=506"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/506\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/media?parent=506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/categories?post=506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/tags?post=506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}