I would like to know how to change the PC use in the dimplot and featureplot by using Seurat. for we can get the x-axis and the y-axis like PC-1 and PC-2, if I want to use PC-4 and PC-5. How to modify the code?
You can choose which PC dims to plot by specifying the
dims argument within the functions. To use PC-4 and PC-5,
DimPlot(object = pbmc_small, dims = c(4, 5), reduction = "pca")
FeaturePlot(object = pbmc_small, features = "Xist", dims = c(4, 5), reduction = "pca")
Seurat documentation is available here.