Seurat: VlnPlot formatting issue

Created on 13 Mar 2018  路  1Comment  路  Source: satijalab/seurat

Hi ,

I am writing with a quick question regarding formatting of violin plots (VlnPlot) in Seurat 2.2. Namely - is there a simple way to change the line width (stroke width?) of these plots without having to export a vector graphics form of the plot and doing in manually in Illustrator? The only parameter I found in the documentation that could offer a way is the "adjust.use" but it wasn't clear in the documentation how to appropriately implement that option.

I also tried the do.return=T and attempted to modify the aesthetic parameters of the ggplot2 object, however with no success.

Thanks in advance and thank you for maintaining this awesome tool!

A.

Analysis Question

Most helpful comment

Hi,

We don't have a specific parameter for this in Seurat so to change this, you need to return the ggplot object and modify it as follows:

p = VlnPlot(pbmc_small, "LYZ", do.return = T)
p$layers[[1]]$aes_params$size = 2
p

>All comments

Hi,

We don't have a specific parameter for this in Seurat so to change this, you need to return the ggplot object and modify it as follows:

p = VlnPlot(pbmc_small, "LYZ", do.return = T)
p$layers[[1]]$aes_params$size = 2
p
Was this page helpful?
0 / 5 - 0 ratings

Related issues

akhst7 picture akhst7  路  3Comments

bio-la picture bio-la  路  3Comments

GHAStVHenry picture GHAStVHenry  路  3Comments

fidelram picture fidelram  路  3Comments

whitleyo picture whitleyo  路  3Comments