ggally

    3熱度

    1回答

    我一直在試圖使用ggnet2來繪製一個圖。爲此,我使用以下代碼: library(igraph) lapply(c("sna", "intergraph", "GGally", "igraph", "network"), require, character.only=T) data <- read.table('CA-CondMat.txt',sep="\t",header=TRUE) g

    0熱度

    1回答

    如何爲一個直方圖指定容器寬度? library(GGally) data(tips, package="reshape") library(ggplot2) ggpairs(data=tips, # data.frame with variables columns=1:3, # columns to plot, default to all. title="tip

    7熱度

    1回答

    隨着 library(GGally) data(diamonds, package="ggplot2") diamonds.samp <- diamonds[sample(1:dim(diamonds)[1],200),] # Custom Example ggpairs( diamonds.samp[,1:5], mapping = ggplot2::aes(color = cut

    4熱度

    1回答

    這是在 User defined colour palette in R and ggpairs或is there a way to change the color palette for GGally::ggpairs using ggplot? 同樣的問題,只是解決方案存在不工作了。 我也想更改調色板,但is there a way to change the color palette f

    0熱度

    1回答

    library(GGally) library(ggplot2) data(diamonds, package="ggplot2") diamonds.samp <- diamonds[sample(1:dim(diamonds)[1],100),] gpd <- ggparcoord(data = diamonds.samp,columns = c(1,5:10),groupColumn

    0熱度

    2回答

    我正在嘗試創建一個帶95%置信度的Kaplan-Meier圖,並在其下的表中添加了刪除數據。我可以創造情節,但不是桌子。我得到錯誤消息:錯誤在grid.draw(都):對象'兩'未找到。 library(survival) library(ggplot2) library(GGally) library(gtable) data(lung) sf.

    3熱度

    2回答

    我看到了這些帖子 GGally::ggpairs plot without gridlines when plotting correlation coefficient use ggpairs to create this plot 讀我能實現這個破解https://github.com/tonytonov/ggally/blob/master/R/gg-plots.r和我的情節是這樣的 我後認

    3熱度

    3回答

    我在做一個ggpairs圖,但迴歸線太粗,'Corr:'文本字體太大。 data(mtcars) head(mtcars) mtcars$am <- as.factor(mtcars$am) g <- ggpairs( data = mtcars, lower = list( continuous = wrap("smooth", alpha = 0.3, c

    8熱度

    1回答

    考慮這個例子: data(tips, package = "reshape") library(GGally) pm <- ggpairs(tips, mapping = aes(color = sex), columns = c("total_bill", "time", "tip")) pm 如何讓密度曲線更加透明和去除黑線? 的GGally包最近似乎改變了很多,我無法找到一個有效的

    0熱度

    1回答

    我試圖從a question similar to mine(我從中借用自包含的示例和標題靈感)構建。我試圖將透明度單獨應用於ggparcoord的每一行,或者以某種方式將ggparcoord的兩層添加到另一行的頂部。下面提供瞭解決方案的數據問題和數據格式的詳細說明。 我有一個包含數千行的數據集,我們稱它爲x。 library(GGally) x = data.frame(a=runif(100