如何使用cnFreq向plotLayer添加两个元素?

时间:2018-04-05 15:07:30

标签: r ggplot2 gridextra

我有以下代码,效果很好:

A1_Plot <- cnFreq(cnData3.1_A1, genome= "hg19", CN_low_cutoff = -0.2, CN_high_cutoff = 0.2,
              x_title_size = NULL,
              y_title_size = NULL,
              plotLayer = ylab(" "),
              plot_title = ("A1"))

如何添加xlab定义?我尝试了以下内容:

A1_Plot <- cnFreq(cnData3.1_A1, genome= "hg19", CN_low_cutoff = -0.2, CN_high_cutoff = 0.2,
              x_title_size = NULL,
              y_title_size = NULL,
              plotLayer = c(ylab(" "), xlab(" ")),
              plot_title = ("A1"))

但是我收到如下错误:

Error: Don't know how to add o to a plot

我试图从cnFreq图中删除X轴和Y轴。

更新:我还根据推荐的主题尝试了以下内容:

A1_Plot <- cnFreq(cnData3.1_A1, genome= "hg19", CN_low_cutoff = -0.2, 
CN_high_cutoff = 0.2,
              x_title_size = 0,
              y_title_size = NULL,
              plotLayer = ylab(" ") +
                xlab(" "),
              plot_title = ("A1 Subgroup"))

给出这个

Error in ylab(" ") + xlab(" ") : non-numeric argument to binary operator

我是新人,要温柔。

0 个答案:

没有答案