Question: how to produce plots like this in R
0
gravatar for Javad
3 months ago by
Javad30
Javad30 wrote:

Dear all,

I am looking for the R package that I can use to produce this type of graphs:

download

I know ggplot2 has probably this capability but I can not find a proper tutorial to do it. I would be grateful if somebody can introduce a tutorial of how to produce these types of graphs.

Thanks

rna-seq • 335 views
ADD COMMENTlink modified 3 months ago by cpad01129.3k • written 3 months ago by Javad30

That appears more as a bubble plot rather a dot plot. If you indeed need a dot plot, try this

ADD REPLYlink written 3 months ago by Vijay Lakhujani3.1k

@OP: it would help if you posted some example data.

ADD REPLYlink written 3 months ago by cpad01129.3k
2
gravatar for jbalberge
3 months ago by
jbalberge70
France/Nantes
jbalberge70 wrote:

Assuming you're analyzing single-cell RNA seq data, you can use the DotPlot function from Seurat:

DotPlot(object = pbmc, genes.plot = features.plot, plot.legend = TRUE)

thanks to https://satijalab.org/seurat/visualization_vignette.html

ADD COMMENTlink written 3 months ago by jbalberge70

Sorry, but here should I normalise for number of cells in each group? I mean when the bigger circle shows higher number of cells

ADD REPLYlink written 3 months ago by Za120
1
gravatar for EagleEye
3 months ago by
EagleEye5.7k
Sweden
EagleEye5.7k wrote:

Try ggplot2 bubble chart

ADD COMMENTlink written 3 months ago by EagleEye5.7k
1

or this: https://ggplot2.tidyverse.org/reference/geom_dotplot.html ?

ADD REPLYlink written 3 months ago by cpad01129.3k
0
gravatar for cpad0112
3 months ago by
cpad01129.3k
India
cpad01129.3k wrote:

Please refer to dotplot function in clusterprofiler package: Look at Visualization of profile comparison section in https://bioconductor.org/packages/devel/bioc/vignettes/clusterProfiler/inst/doc/clusterProfiler.html

screenshot from the webpage:

bubblechart

ADD COMMENTlink modified 3 months ago • written 3 months ago by cpad01129.3k

Thanks a lot. It is a very good suggestion but the problem is that I need something that I have full control on the graph production. I need to factor the data and compare different data sets in a same figure. That is why I asked for a ggplot2 tutorial.

ADD REPLYlink written 3 months ago by Javad30
2

oh okay. Then probably, geom_dotplot function in ggplot might help you in plotting.

ADD REPLYlink written 3 months ago by cpad01129.3k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1582 users visited in the last hour