簡體   English   中英

R-ggcorrplot添加字幕

[英]R - ggcorrplot Adding a Subtitle

有沒有一種方法可以將字幕添加到ggcorrplot圖? 我已經閱讀了文檔,並且軟件包中沒有內置字幕功能。

library(ggcorrplot)
data(mtcars)
ggcorrplot(round(cor(mtcars), 1))

在此處輸入圖片說明

謝謝

由於我們處理了ggplot對象,因此我們可以簡單地添加它們

library(ggcorrplot)
data(mtcars)
ggcorrplot(round(cor(mtcars), 1)) + 
  labs(title = "My title",
       subtitle = "Here is a subtitle")

在此處輸入圖片說明

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM