<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ## ggplot2 常規的圖形參數調整 這一小節主要介紹利用boxplot來系統的展示一下如何對ggplot2進行圖形參數的調整,讓做出來的圖更符合自己的標準。 > 以上一節的boxplot來做具體展示 ```R # 設置主題 # 利用axis.title.x, axis.title.y改變x,y標題字體大小 P4 <- ggplot(rt_box, aes(x = group, y = TP53, fill = group)) + geom_boxplot() + geom_dotplot(binaxis='y', stackdir='center', position=position_dodge(1)) + theme(axis.title.x = element_text(size = 20, angle = 1, vjust = 0.5, hjust = 0.5), axis.title.y = element_text(size = 20, angle = 90, vjust = 0.5, hjust = 0.5)) print(P4) # 利用axis.text.x, axis.text.y 改變坐標軸字體大小 P5 <- P4 + theme(axis.text.x = element_text(size = 20, vjust = 0.5, hjust = 0.5, angle = 1), axis.text.y = element_text(size = 20, vjust = 0.5, hjust = 0.5, angle = 450)) print(P5) ``` ![scatter plot](http://kancloud.nordata.cn/2018-12-30-074250.png)![scatter plot](http://kancloud.nordata.cn/2018-12-30-074251.png) > 修改legend ```R # 利用legend.title和legend.text改變圖表legend字體的大小和顏色 P6 <- P5 + theme(legend.title = element_text(angle = 1, size = 20, colour = 'blue'), legend.text = element_text(angle = 1, size = 20, colour = 'blue'),) print(P6) # 利用legend.position設置legend的位置特征 P7 <- P6 + theme(legend.position = "top", legend.justification=c(0.5, 1), ) print(P7) # 利用legend.background可以給lenend添加背景顏色 P8 <- P7 + theme(legend.background = element_rect(fill="lightblue", size=0.5, linetype="solid", colour ="darkblue")) print(P8) # 也可以去掉legend P9 <- P8 + theme(legend.position='none') print(P9) ``` ![scatter plot](http://kancloud.nordata.cn/2018-12-30-074252.png)![scatter plot](http://kancloud.nordata.cn/2018-12-30-74253.png) ![scatter plot](http://kancloud.nordata.cn/2018-12-30-074253.png)![scatter plot](http://kancloud.nordata.cn/2018-12-30-074254.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看