# #——包括= FALSE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - knitr:: opts_chunk设置美元(崩溃= TRUE,评论= " # >”)图书馆(ggplot2) theme_set (theme_classic()) # #——加载库,消息= FALSE,警告= FALSE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -库(schex)库(dplyr)库(修)# # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pbmc_small # #——umap,消息= FALSE,警告= FALSE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - set.seed (10) pbmc_small < - RunUMAP (pbmc_small dim = 1:10, verbose = FALSE) # #——calc-hexbin - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pbmc_small <——make_hexbin (pbmc_small nbins = 10, dimension_reduction =“umap”) # #——plot-density fig.height = 7, fig.width = 7 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - plot_hexbin_density (pbmc_small) # #——plot-meta-1 fig.height = 7, fig.width = 7 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - plot_hexbin_meta (pbmc_small坳=“nCount_RNA action =“中值”)# #——plot-gene fig.height = 7, fig.width = 7 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - gene_id < -“CD1C”schex:: plot_hexbin_feature (pbmc_small, type = "规模。数据”功能= gene_id action =“的意思是”,xlab = " UMAP1”, ylab = " UMAP2”,标题= paste0(“的”,gene_id)) # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - gene_id < -“CD1C gg < - schex:: plot_hexbin_feature (pbmc_small, type = "规模。数据”功能= gene_id action =“的意思是”,xlab = " UMAP1”, ylab = " UMAP2”,标题= paste0(“的”,gene_id)) gg + theme_void () # # - - - - - eval = FALSE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # ggsave (gg、文件=“schex_plot.pdf”)