{"provider_url":"https://hatena.blog","blog_url":"https://dichika.hateblo.jp/","categories":["R"],"author_url":"https://blog.hatena.ne.jp/dichika/","published":"2016-03-17 00:00:00","url":"https://dichika.hateblo.jp/entry/20160317/p1","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdichika.hateblo.jp%2Fentry%2F20160317%2Fp1\" title=\" ggplot2\u3067geom_line\u3059\u308b\u6642\u306bNA\u3092\u7121\u8996\u3057\u3066\u7dda\u3092\u3064\u306a\u3050 - \u76c6\u683d\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/d/dichika/20160317/20160317074846.png","blog_title":"\u76c6\u683d\u65e5\u8a18","height":"190","width":"100%","description":"geom_line\u3059\u308b\u3068\u304d\u3001NA\u304c\u5165\u3063\u3066\u3044\u308b\u3068\u305d\u3053\u3067\u7dda\u304c\u9014\u5207\u308c\u3066\u3057\u307e\u3046\u3002 library(\"ggplot2\") smp <- data.frame(x = 1:5, y = c(1:3, NA, 5)) ggplot(smp, aes(x = x, y = y, group = 1)) + geom_line() + geom_point() \u3042\u3089\u304b\u3058\u3081NA\u3092\u9664\u3044\u3066\u304a\u3051\u3070\u3001\u7dda\u3092\u3064\u306a\u3044\u3067\u304f\u308c\u308b\u3002 ggplot(subset(smp, !is.na(y)), aes(x = x, y = y, group = 1)) + geom_line() + geom_point() \u306a\u3093\u3060\u304b\u6bce\u56de\u3084\u308a\u65b9\u3092\u8abf\u2026","title":" ggplot2\u3067geom_line\u3059\u308b\u6642\u306bNA\u3092\u7121\u8996\u3057\u3066\u7dda\u3092\u3064\u306a\u3050","type":"rich","author_name":"dichika"}