{"id":471,"date":"2023-07-29T19:19:54","date_gmt":"2023-07-29T19:19:54","guid":{"rendered":"https:\/\/statorials.org\/ja\/%e3%83%92%e3%83%bc%e3%83%88%e3%83%9e%e3%83%83%e3%83%95%e3%82%9a-r-ggplot2\/"},"modified":"2023-07-29T19:19:54","modified_gmt":"2023-07-29T19:19:54","slug":"%e3%83%92%e3%83%bc%e3%83%88%e3%83%9e%e3%83%83%e3%83%95%e3%82%9a-r-ggplot2","status":"publish","type":"post","link":"https:\/\/statorials.org\/ja\/%e3%83%92%e3%83%bc%e3%83%88%e3%83%9e%e3%83%83%e3%83%95%e3%82%9a-r-ggplot2\/","title":{"rendered":"Ggplot2 \u3092\u4f7f\u7528\u3057\u3066 r \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001ggplot2 \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><\/p>\n<h3><strong><span style=\"color: #000000;\">\u4f8b: R \u3067\u306e\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u306e\u4f5c\u6210<\/span><\/strong><\/h3>\n<p><span style=\"color: #000000;\">\u30d2\u30fc\u30c8\u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u7d44\u307f\u8fbc\u307f\u306e R \u30c7\u30fc\u30bf\u30bb\u30c3\u30c8<strong>mtcars<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#view first six rows of <em>mtcars\n<\/em><\/span>head(mtcars)\n\n# mpg cyl disp hp drat wt qsec vs am gear carb\n#Mazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4\n#Mazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4\n#Datsun 710 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1\n#Hornet 4 Drive 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1\n#Hornet Sportabout 18.7 8 360 175 3.15 3.440 17.02 0 0 3 2\n#Valiant 18.1 6 225 105 2.76 3.460 20.22 1 0 3 1\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u73fe\u5728\u3001 <strong>mtcars \u306f<\/strong>\u30ef\u30a4\u30c9\u5f62\u5f0f\u3067\u3059\u304c\u3001\u30d2\u30fc\u30c8\u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u3053\u308c\u3092\u30ed\u30f3\u30b0\u5f62\u5f0f\u306b\u30d6\u30ec\u30f3\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#load <em>reshape2<\/em> package to use melt() function<\/span>\nlibrary(reshape2)\n\n<span style=\"color: #008080;\">#melt mtcars into long format<\/span>\nmelt_mtcars &lt;- melt(mtcars)\n\n<span style=\"color: #008080;\">#add column for car name<\/span>\nmelt_mtcars$car &lt;- rep(row.names(mtcars), 11)\n\n<span style=\"color: #008080;\">#view first six rows of <em>melt_mtcars<\/em><\/span>\nhead(melt_mtcars)\n\n# variable value char\n#1 mpg 21.0 Mazda RX4\n#2 mpg 21.0 Mazda RX4 Wag\n#3 mpg 22.8 Datsun 710\n#4 mpg 21.4 Hornet 4 Drive\n#5 mpg 18.7 Hornet Sportabout\n#6 mpg 18.1 Valiant<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001ggplot2 \u3067\u30d2\u30fc\u30c8\u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>library(ggplot2)\n\nggplot(melt_mtcars, aes(variable, char)) +\n  geom_tile(aes(fill = value),<\/strong> <strong>color = \"white\") +\n  scale_fill_gradient(low = \"white\",<\/strong> <strong>high = \"red\")<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u6b8b\u5ff5\u306a\u304c\u3089\u3001 <em>disp<\/em>\u306e\u5024\u306f\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u5185\u306e\u4ed6\u306e\u3059\u3079\u3066\u306e\u5909\u6570\u306e\u5024\u3088\u308a\u3082\u306f\u308b\u304b\u306b\u5927\u304d\u3044\u305f\u3081\u3001\u4ed6\u306e\u5909\u6570\u306e\u8272\u306e\u5909\u5316\u3092\u898b\u308b\u306e\u306f\u56f0\u96e3\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b 1 \u3064\u306e\u65b9\u6cd5\u306f\u3001scales() \u30d1\u30c3\u30b1\u30fc\u30b8\u306e<strong>rescale()<\/strong>\u95a2\u6570\u3068 plyr() \u30d1\u30c3\u30b1\u30fc\u30b8\u306e<strong>ddply()<\/strong>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u5404\u5909\u6570\u306e\u5024\u3092 0 \u304b\u3089 1 \u306b\u518d\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#load libraries<\/span>\nlibrary(plyr)\nlibrary(scales)\n\n<span style=\"color: #008080;\">#rescale values for all variables in melted data frame<\/span>\nmelt_mtcars &lt;- ddply(melt_mtcars, .(variable), transform, rescale = rescale(value))\n\n<span style=\"color: #008080;\">#create heatmap using rescaled values<\/span>\nggplot(melt_mtcars, aes(variable, char)) +\n  geom_tile(aes(fill = rescale), color = \"white\") +\n  scale_fill_gradient(low = \"white\", high = \"red\")\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u307e\u305f\u3001scale_fill_gradient() \u5f15\u6570\u3067\u4f7f\u7528\u3055\u308c\u308b\u8272\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u3001\u30d2\u30fc\u30c8\u30de\u30c3\u30d7\u306e\u8272\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create heatmap using blue color scale\n<\/span>ggplot(melt_mtcars, aes(variable, char)) +\n  geom_tile(aes(fill = rescale), color = \"white\") +\n  scale_fill_gradient(low = \"white\", high = \"steelblue\")<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u73fe\u5728\u3001\u30d2\u30fc\u30c8\u30de\u30c3\u30d7\u306f\u8eca\u540d\u3054\u3068\u306b\u5206\u985e\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4ee3\u308f\u308a\u306b\u3001\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001 <em>mpg<\/em>\u306a\u3069\u306e\u5909\u6570\u306e 1 \u3064\u306e\u5024\u306b\u5f93\u3063\u3066\u30d2\u30fc\u30c8\u30de\u30c3\u30d7\u3092\u4e26\u3079\u66ff\u3048\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define car name as a new column, then order by <em>mpg<\/em> descending\n<\/span>mtcars$car &lt;- row.names(mtcars)\nmtcars$car &lt;- with(mtcars, reorder(car, mpg))\n\n<span style=\"color: #008080;\">#melt mtcars into long format\n<\/span>melt_mtcars &lt;- melt(mtcars)\n\n<span style=\"color: #008080;\">#rescale values for all variables in melted data frame\n<\/span>melt_mtcars &lt;- ddply(melt_mtcars, .(variable), transform, rescale = rescale(value))\n\n<span style=\"color: #008080;\">#create heatmap using rescaled values\n<\/span>ggplot(melt_mtcars, aes(variable, char)) +\n  geom_tile(aes(fill = rescale), color = \"white\") +\n  scale_fill_gradient(low = \"white\", high = \"steelblue\")<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><em>mpg<\/em>\u3092\u5897\u3084\u3057\u3066\u30d2\u30fc\u30c8\u30de\u30c3\u30d7\u3092\u4e26\u3079\u66ff\u3048\u308b\u306b\u306f\u3001\u5358\u306b reorder() \u5f15\u6570\u3067<strong>-mpg<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define car name as a new column, then order by mpg descending\n<\/span>mtcars$car &lt;- row.names(mtcars)\nmtcars$car &lt;- with(mtcars, reorder(car, <span style=\"color: #800080;\">-mpg<\/span> ))\n\n<span style=\"color: #008080;\">#melt mtcars into long format\n<\/span>melt_mtcars &lt;- melt(mtcars)\n\n<span style=\"color: #008080;\">#rescale values for all variables in melted data frame\n<\/span>melt_mtcars &lt;- ddply(melt_mtcars, .(variable), transform, rescale = rescale(value))\n\n<span style=\"color: #008080;\">#create heatmap using rescaled values\n<\/span>ggplot(melt_mtcars, aes(variable, char)) +\n  geom_tile(aes(fill = rescale), color = \"white\") +\n  scale_fill_gradient(low = \"white\", high = \"steelblue\")<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u6700\u5f8c\u306b\u3001\u898b\u305f\u76ee\u304c\u6c17\u306b\u5165\u3089\u306a\u3044\u5834\u5408\u306f\u3001\u5f15\u6570 labs() \u3068 theme() \u3092\u4f7f\u7528\u3057\u3066\u3001x \u8ef8\u3068 y \u8ef8\u306e\u30e9\u30d9\u30eb\u3068\u51e1\u4f8b\u3092\u524a\u9664\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create heatmap with no axis labels or legend\n<\/span>ggplot(melt_mtcars, aes(variable, char)) +\n  geom_tile(aes(fill = rescale), color = \"white\") +\n  scale_fill_gradient(low = \"white\", high = \"steelblue\") +\n  <span style=\"color: #800080;\">labs(x = \"\", y = \"\") +\n  theme(legend.position = \"none\")<\/span><\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001ggplot2 \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002 \u4f8b: R \u3067\u306e\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u306e\u4f5c\u6210 \u30d2\u30fc\u30c8\u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u7d44\u307f\u8fbc\u307f\u306e R \u30c7\u30fc\u30bf\u30bb\u30c3\u30c8mtcars\u3092\u4f7f\u7528\u3057\u307e\u3059\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":[16],"tags":[],"class_list":["post-471","post","type-post","status-publish","format-standard","hentry","category-16"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ggplot2 \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Statology<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001ggplot2 \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\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\/ja\/\u30d2\u30fc\u30c8\u30de\u30c3\u30d5\u309a-r-ggplot2\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ggplot2 \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Statology\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001ggplot2 \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/ja\/\u30d2\u30fc\u30c8\u30de\u30c3\u30d5\u309a-r-ggplot2\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-29T19:19:54+00:00\" \/>\n<meta name=\"author\" content=\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\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\/ja\/%e3%83%92%e3%83%bc%e3%83%88%e3%83%9e%e3%83%83%e3%83%95%e3%82%9a-r-ggplot2\/\",\"url\":\"https:\/\/statorials.org\/ja\/%e3%83%92%e3%83%bc%e3%83%88%e3%83%9e%e3%83%83%e3%83%95%e3%82%9a-r-ggplot2\/\",\"name\":\"ggplot2 \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Statology\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/ja\/#website\"},\"datePublished\":\"2023-07-29T19:19:54+00:00\",\"dateModified\":\"2023-07-29T19:19:54+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83\"},\"description\":\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001ggplot2 \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/ja\/%e3%83%92%e3%83%bc%e3%83%88%e3%83%9e%e3%83%83%e3%83%95%e3%82%9a-r-ggplot2\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/ja\/%e3%83%92%e3%83%bc%e3%83%88%e3%83%9e%e3%83%83%e3%83%95%e3%82%9a-r-ggplot2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/ja\/%e3%83%92%e3%83%bc%e3%83%88%e3%83%9e%e3%83%83%e3%83%95%e3%82%9a-r-ggplot2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/ja\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ggplot2 \u3092\u4f7f\u7528\u3057\u3066 r \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/ja\/#website\",\"url\":\"https:\/\/statorials.org\/ja\/\",\"name\":\"Statorials\",\"description\":\"\u7d71\u8a08\u80fd\u529b\u3078\u306e\u30ac\u30a4\u30c9\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/ja\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83\",\"name\":\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\"},\"description\":\"\u79c1\u306f\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u3067\u3059\u3002\u9000\u8077\u3057\u305f\u7d71\u8a08\u6559\u6388\u304b\u3089\u3001\u5c02\u4efb\u306e Statorials \u6559\u80b2\u8005\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u7d71\u8a08\u5206\u91ce\u306b\u304a\u3051\u308b\u8c4a\u5bcc\u306a\u7d4c\u9a13\u3068\u5c02\u9580\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3066\u3001\u79c1\u306f Statorials \u3092\u901a\u3058\u3066\u5b66\u751f\u306b\u529b\u3092\u4e0e\u3048\u308b\u305f\u3081\u306b\u81ea\u5206\u306e\u77e5\u8b58\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u306b\u5c3d\u529b\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3063\u3068\u77e5\u308b\",\"sameAs\":[\"http:\/\/statorials.org\/ja\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ggplot2 \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Statology","description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001ggplot2 \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\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\/ja\/\u30d2\u30fc\u30c8\u30de\u30c3\u30d5\u309a-r-ggplot2\/","og_locale":"ja_JP","og_type":"article","og_title":"ggplot2 \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Statology","og_description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001ggplot2 \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/statorials.org\/ja\/\u30d2\u30fc\u30c8\u30de\u30c3\u30d5\u309a-r-ggplot2\/","og_site_name":"Statorials","article_published_time":"2023-07-29T19:19:54+00:00","author":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/ja\/%e3%83%92%e3%83%bc%e3%83%88%e3%83%9e%e3%83%83%e3%83%95%e3%82%9a-r-ggplot2\/","url":"https:\/\/statorials.org\/ja\/%e3%83%92%e3%83%bc%e3%83%88%e3%83%9e%e3%83%83%e3%83%95%e3%82%9a-r-ggplot2\/","name":"ggplot2 \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Statology","isPartOf":{"@id":"https:\/\/statorials.org\/ja\/#website"},"datePublished":"2023-07-29T19:19:54+00:00","dateModified":"2023-07-29T19:19:54+00:00","author":{"@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83"},"description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001ggplot2 \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/ja\/%e3%83%92%e3%83%bc%e3%83%88%e3%83%9e%e3%83%83%e3%83%95%e3%82%9a-r-ggplot2\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/ja\/%e3%83%92%e3%83%bc%e3%83%88%e3%83%9e%e3%83%83%e3%83%95%e3%82%9a-r-ggplot2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/ja\/%e3%83%92%e3%83%bc%e3%83%88%e3%83%9e%e3%83%83%e3%83%95%e3%82%9a-r-ggplot2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/ja\/"},{"@type":"ListItem","position":2,"name":"Ggplot2 \u3092\u4f7f\u7528\u3057\u3066 r \u3067\u30d2\u30fc\u30c8 \u30de\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/ja\/#website","url":"https:\/\/statorials.org\/ja\/","name":"Statorials","description":"\u7d71\u8a08\u80fd\u529b\u3078\u306e\u30ac\u30a4\u30c9","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/ja\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83","name":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/image\/","url":"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb"},"description":"\u79c1\u306f\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u3067\u3059\u3002\u9000\u8077\u3057\u305f\u7d71\u8a08\u6559\u6388\u304b\u3089\u3001\u5c02\u4efb\u306e Statorials \u6559\u80b2\u8005\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u7d71\u8a08\u5206\u91ce\u306b\u304a\u3051\u308b\u8c4a\u5bcc\u306a\u7d4c\u9a13\u3068\u5c02\u9580\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3066\u3001\u79c1\u306f Statorials \u3092\u901a\u3058\u3066\u5b66\u751f\u306b\u529b\u3092\u4e0e\u3048\u308b\u305f\u3081\u306b\u81ea\u5206\u306e\u77e5\u8b58\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u306b\u5c3d\u529b\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3063\u3068\u77e5\u308b","sameAs":["http:\/\/statorials.org\/ja"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts\/471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/comments?post=471"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts\/471\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/media?parent=471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/categories?post=471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/tags?post=471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}