<?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>
    <anon>R</anon>
    <anon>ggplot2</anon>
    <anon>xkcd</anon>
  </categories>
  <description>不真面目な話にかっちりとしたプロットは似合わない。 相応のプロットを描きたい。Rで描きたい。 xkcdパッケージで大体のところは描ける。 通常、折れ線グラフはxkcdline関数で描けるのだが定義域の変化に合わせて関数が変わるような場合には対応していなさそうだったのでそこはcurve関数で値を作って、geom_smoothで手書きっぽく表現した。 f1 &lt;- function(x){ ifelse(x&lt;2, x*(-1) + 3, ifelse(x&gt;=2 &amp; x&lt;7, 1, x*5-34)) } mydata &lt;- as.data.frame(curve(from=0,to=8,f1)) gg…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdichika.hateblo.jp%2Fentry%2F20140417%2Fp1&quot; title=&quot;Rでぐにゃぐにゃしたプロットを描く - 盆栽日記&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/20140417/20140417105512.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-04-17 00:00:00</published>
  <title>Rでぐにゃぐにゃしたプロットを描く</title>
  <type>rich</type>
  <url>https://dichika.hateblo.jp/entry/20140417/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
