<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>MikuHatsune</author_name>
  <author_url>https://blog.hatena.ne.jp/MikuHatsune/</author_url>
  <blog_title>驚異のアニヲタ社会復帰の予備</blog_title>
  <blog_url>https://mikuhatsune.hatenadiary.com/</blog_url>
  <categories>
    <anon>R</anon>
    <anon>Rを使いこなす</anon>
    <anon>数学いらずの医科統計学</anon>
    <anon>統計</anon>
  </categories>
  <description>結論から言うと、substitute 関数を使って数式を記述し、atop を分子と分母について2行にわたって記述したいテキストに対してそれぞれ使う。ただし、分数表記でいうと微妙に高さがずれるので、atop は中央の括線を書かないので気にしない、ということにすればなんとかなる。こんな感じの図を書きたいと思った。 カプランマイヤーの生存曲線だが、3群比較で、Cox 比例ハザード比を用いて、対照となる群に対して残りの2群のp値やハザード比、95%信頼区間をlegend に詳細に書きたいのだが、pはイタリックでpにしたいし、1行に全部書いていたら長くなりすぎるため、2行にしたかった。 ここで、最も簡単…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmikuhatsune.hatenadiary.com%2Fentry%2F2021%2F08%2F09%2F225106&quot; title=&quot;legend 内部で数式を混在させながら左揃えで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/M/MikuHatsune/20210809/20210809223005.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-08-09 22:51:06</published>
  <title>legend 内部で数式を混在させながら左揃えで2行にわたってテキストを書きたい</title>
  <type>rich</type>
  <url>https://mikuhatsune.hatenadiary.com/entry/2021/08/09/225106</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
