r - r - 用ggplot函數對?

  显示原文与译文双语对照的内容

我嘗試plot dataframe PDvsPEAKS中2個變數x和y之間的散點圖比較,下面給出的代碼。


Abundance_NQ01_positive-IB-DNQ_0.1M_PDvsPeaks <- ggplot(PDvsPeaks, aes(x = Abundance_NQ01_positive-IB-DNQ_PD, y = Abundance_NQ01_positive-IB-DNQ_PEAKS, name = Accession)) + 


 geom_abline(slope = 1, intercept = 0, color ="red") +


 geom_point() +


 labs(x ="Abundance of NQ01+ IB-DNQ 0.1M by PEAKS",


 y ="Abundance of NQ01+ IB-DNQ 0.1M by PD",


 title ="Comparison of Abundance of NQ01+ IB-DNQ 0.1M between PEAKS and PD")



但是,即使在dataframe中可以看到列名,它也將返回以下錯誤(找不到對象)。


Error in Abundance_NQ01_positive - IB - DNQ_0.1M_PDvsPeaks <- ggplot(PDvsPeaks, : 



object 'Abundance_NQ01_positive' not found



In addition: Warning messages:


1: In read.dcf(file.path(p,"DESCRIPTION"), c("Package","Version")) :


 cannot open compressed file 'C:/Users/Gita/Documents/R/win-library/3.6/BiocGenerics/DESCRIPTION', 


probable reason 'No such file or directory'



2: In read.dcf(file.path(p,"DESCRIPTION"), c("Package","Version")) :


 cannot open compressed file 'C:/Users/Gita/Documents/R/win-library/3.6/IRanges/DESCRIPTION', `probable reason 'No such file or directory'



3: In read.dcf(file.path(p,"DESCRIPTION"), c("Package","Version")) :


 cannot open compressed file 'C:/Users/Gita/Documents/R/win-library/3.6/S4Vectors/DESCRIPTION', `probable reason 'No such file or directory'



4: In find.package(if (is.null(package)) loadedNamespaces() else package, :


 there is no package called 'BiocGenerics'



5: In find.package(if (is.null(package)) loadedNamespaces() else package, :


 there is no package called 'IRanges'



6: In find.package(if (is.null(package)) loadedNamespaces() else package, :


 there is no package called 'S4Vectors'



时间:

我嘗試plot dataframe PDvsPEAKS中2個變數x和y之間的散點圖比較,下面給出的代碼。


Abundance_NQ01_positive-IB-DNQ_0.1M_PDvsPeaks <- ggplot(PDvsPeaks, aes(x = Abundance_NQ01_positive-IB-DNQ_PD, y = Abundance_NQ01_positive-IB-DNQ_PEAKS, name = Accession)) + 


 geom_abline(slope = 1, intercept = 0, color ="red") +


 geom_point() +


 labs(x ="Abundance of NQ01+ IB-DNQ 0.1M by PEAKS",


 y ="Abundance of NQ01+ IB-DNQ 0.1M by PD",


 title ="Comparison of Abundance of NQ01+ IB-DNQ 0.1M between PEAKS and PD")



但是,即使在dataframe中可以看到列名,它也將返回以下錯誤(找不到對象)。


Error in Abundance_NQ01_positive - IB - DNQ_0.1M_PDvsPeaks <- ggplot(PDvsPeaks, : 



object 'Abundance_NQ01_positive' not found



In addition: Warning messages:


1: In read.dcf(file.path(p,"DESCRIPTION"), c("Package","Version")) :


 cannot open compressed file 'C:/Users/Gita/Documents/R/win-library/3.6/BiocGenerics/DESCRIPTION', 


probable reason 'No such file or directory'



2: In read.dcf(file.path(p,"DESCRIPTION"), c("Package","Version")) :


 cannot open compressed file 'C:/Users/Gita/Documents/R/win-library/3.6/IRanges/DESCRIPTION', `probable reason 'No such file or directory'



3: In read.dcf(file.path(p,"DESCRIPTION"), c("Package","Version")) :


 cannot open compressed file 'C:/Users/Gita/Documents/R/win-library/3.6/S4Vectors/DESCRIPTION', `probable reason 'No such file or directory'



4: In find.package(if (is.null(package)) loadedNamespaces() else package, :


 there is no package called 'BiocGenerics'



5: In find.package(if (is.null(package)) loadedNamespaces() else package, :


 there is no package called 'IRanges'



6: In find.package(if (is.null(package)) loadedNamespaces() else package, :


 there is no package called 'S4Vectors'



...