<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chito_ng</author_name>
  <author_url>https://blog.hatena.ne.jp/chito_ng/</author_url>
  <blog_title>まずは蝋の翼から。</blog_title>
  <blog_url>https://knknkn.hatenablog.com/</blog_url>
  <categories>
    <anon>R</anon>
    <anon>使い方メモ(ライブラリ)</anon>
    <anon>使い方メモ(不便解決)</anon>
  </categories>
  <description>ggplot2で異なるグラフを重ねて、yの値が左右で異なるグラフを2軸グラフという。 イメージ的には、下記の2グラフ(平均価格をpoint、平均カラット数を棒グラフ）を1画面に収めるイメージ(※棒グラフの数値テキストは、以降での値を確かめる用なので除く)。 ~ 個人的に2軸グラフは見づらくなるしゴチャゴチャしやすいので書くべきではないと思いますが、他からの指示で出さないといけないときがあるんや・・・。 ~ library(tidyverse) library(patchwork) # データ作成 df &lt;- sample_n(diamonds,1000) %&gt;% group_by(clarit…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fknknkn.hatenablog.com%2Fentry%2F2019%2F02%2F27%2F204913&quot; title=&quot;ggplotで別々のデータを使った2軸グラフを使いたい - まずは蝋の翼から。&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/c/chito_ng/20190227/20190227192030.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-02-27 20:49:13</published>
  <title>ggplotで別々のデータを使った2軸グラフを使いたい</title>
  <type>rich</type>
  <url>https://knknkn.hatenablog.com/entry/2019/02/27/204913</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
