Questions tagged [dot-plot]

28 questions
0
votes
0 answers

How can I choose which panel(s) in a facet_plot graph are highlighted/labelled?

I want to visualise a tree in ggtree with clades highlighted and genera labelled. This is working fine. I also want to add a dotplot next to the tree, showing the number of studies each species has been used in and which stressors they were…
0
votes
1 answer

How can I make a 4-column scatter/dot plot on R?

I want to make a scatter/dot plot with four different groups of data. My groups are MA-H2o, MA-Cu, OA-H2o, and OA-Cu. I found a previous answer here and made each group into its own separate data set/name which worked great, but the rest of the code…
0
votes
2 answers

How to reorder a dot plot in R

I have this dataset on the percentage of individuals who own a car in five different cities between 1992 and 1999: city <- c("A", "A", "B", "B", "F", "F", "T", "T", "C", "C") year <- c("1992", "1999", "1992", "1999", "1992", "1999",…
Santiago99
  • 143
  • 4
0
votes
2 answers

Automatic break after n-dots in geom_dotplot-function in ggplot in R

I have got a problem in managing multiple observations in the geom_dotplot-function due to overlap between different groups: v1 <-…
0
votes
1 answer

Change ylims on dotplot with ggplot

I want to build a dot plot with y limits from -3 to 3. This one time, my data does not contain -3, so it does not show up on my plot. I was not abe to manually change ylim to (-3,3). Is there a way to do this? I tried ylim=c(-3,3) and…
0
votes
0 answers

R: Error: Error in intI(j, n = d[2L], dn[[2L]], give.dn = FALSE) : ungültige Zeichenindexierung

R is very new to me. I try to make a DotPlot. Here is my code: ... Idents(immune.combined) <- factor(Idents(immune.combined), levels = c("HSPC", "Mono/Mk Doublets", "pDC",…
BLCKou
  • 1
  • 1
0
votes
0 answers

Adding labels to end of line in ggplot2 in R

I am producing a lollipop graph in ggplot2 in R using dot_plot. However I would like to add one label to the end of each line to indicate each line represents 1 SNP. I would like the label to be at 180 degrees (the direction of the geom_line…
holly
  • 41
  • 6
0
votes
0 answers

How do I create the object compatible for the function in enrichplot?

I am running the following command for GSEA analysis in R gse <- gseGO(geneList=gene_list, ont ="ALL", keyType = "SYMBOL", minGSSize = 3, maxGSSize = 800, pvalueCutoff = 0.05, …
user2110417
0
votes
1 answer

How can I add a mean bar and a jitter to my dot plots?

I am trying to compare data from three groups and I would like to have a mean bar on every group and some jitter. first <- c(1, 1.2, 2, 3, 4) second <- c(5, 6, 7, 8, 9) third <- c(10, 16, 17, 18, 19) df <- data.frame(Value = c(first,second), …
Lara
  • 129
  • 7
0
votes
1 answer

How to make a dotplot with a discontinuous axis in R

Hi I'm trying to make a dotplot but have got pretty big differences between my groups so am trying to create a graph with breaks in the axis to display…
Mar77
  • 1
0
votes
1 answer

Columns into Rows for data

I am trying to add the gene names onto a heat map. To do this I have had to use Biomart to match the Gene names to the Ensembl ID's. Then I wanted to bring the gene names to be the row names on the file (replacing the Ensembl ID's) so that when II…
0
votes
0 answers

Is there a way in R to draw grouped dotplots without converting the data from wide to long format?

I am using an r data frame which looks something like: df = data_frame( A=c(sample(0:2,size=50,replace=TRUE)), A1=c(sample(0:50,size=50,replace=TRUE)), A2=c(sample(0:50,size=50,replace=TRUE))) I am trying to produce a grouped dot plot of A1 and A1,…
beanie42
  • 1
  • 2
0
votes
1 answer

How can I rearrange the order of y-axis on cleveland dot plot?

I have a Table and I generated a Hallmark Cleveland plot to visualize the enrichment scores before and after applying my software. But how can I rearrange the order of my plot to look like this ? I was thinking to sum up scores of all statuses in…
1
2