- 以PDF为例
library(ggplot2)
# Opening the graphical device
# Customizing the output
pdf("p1umap.pdf", # File name
width = 8, height = 7, # Width and height in inches
bg = "transparent", # Background color
colormodel = "cmyk" # Color model (cmyk is required for most publications)
paper = "A4") # Paper size
# Creating a plot
p1 <- DimPlot(w15_1_2_st.obj.rds, reduction = "umap")
# Closing the graphical device
dev.off()
svg/png/jpg以此类推,改名称即可
网友评论