text: user3171: 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?
  
  user181: 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")
  
  and
  FeaturePlot(object = pbmc_small, features = "Xist", dims = c(4, 5), reduction = "pca")
  
  
  Seurat documentation is available here.
  
original_text: 3171: <p>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?</p>
   181: <p>You can choose which PC dims to plot by specifying the <code>dims</code> argument within the functions. To use PC-4 and PC-5,</p>
  
  <pre><code>DimPlot(object = pbmc_small, dims = c(4, 5), reduction = "pca")
  </code></pre>
  
  <p>and</p>
  
  <pre><code>FeaturePlot(object = pbmc_small, features = "Xist", dims = c(4, 5), reduction = "pca")
  </code></pre>
  
  <hr>
  
  <p>Seurat documentation is available <a href="https://cran.r-project.org/web/packages/Seurat/Seurat.pdf" rel="nofollow noreferrer">here</a>.</p>
  