<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dichika</author_name>
  <author_url>https://blog.hatena.ne.jp/dichika/</author_url>
  <blog_title>盆栽日記</blog_title>
  <blog_url>https://dichika.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>各因子を結合した列を追加すればいいっちゃいいのだが、ggplot2上で指定する方法もあったよなと思いながら思い出せなかった+ググりづらかったのでこれも備忘。interaction()を使う。 library(ggplot2) library(dplyr) # ChickWeightデータで初回の体重が43以上か否かのフラグを立てる summarised_weight &lt;- ChickWeight %&gt;% group_by(Chick) %&gt;% mutate(flag = weight[Time==0]&gt;=43) %&gt;% ungroup %&gt;% group_by(Time, Diet, flag…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdichika.hateblo.jp%2Fentry%2F2019%2F02%2F08%2F202357&quot; title=&quot;ggplot2で複数の因子によるグループで折れ線プロット - 盆栽日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/d/dichika/20190208/20190208193207.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-02-08 20:23:57</published>
  <title>ggplot2で複数の因子によるグループで折れ線プロット</title>
  <type>rich</type>
  <url>https://dichika.hateblo.jp/entry/2019/02/08/202357</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
