Questions tagged [dot-plot]
28 questions
2
votes
1 answer
How to plot a dot plot type scatterplot in matplotlib or seaborn?
Let's say I have a df like this:
df = pd.DataFrame({'col1': list('aabbb'), 'col2': [1, 3, 1, 5, 3]})
col1 col2
0 a 1
1 a 3
2 b 1
3 b 5
4 b 3
I would like to see a plot, where on the x axis, I have the col1…

biohazard90
- 95
- 1
- 7
2
votes
0 answers
Cleveland's dotplot using Python ggplot
I am very new to ggplot. I am trying to create a dotplot in this fashion.
https://stackoverflow.com/a/20621581/229075
I don't have much luck so far. My trial below
df=DataFrame({'label':['a', 'b', 'c'],
'value':[7, 2,…

Wai Yip Tung
- 18,106
- 10
- 43
- 47
1
vote
1 answer
Frequency plot using dots instead of bars?
I'm trying to create the chart in this question, using this answer. I'm open to any solution that works.
Visual borrowed from original question:
Difference from that question is I've already calculated my bins and frequency values so I don't use…

Programming_Learner_DK
- 1,509
- 4
- 23
- 49
1
vote
1 answer
How can I make stacked dot plots using a facet in GGplot2? R
I am trying to stack dot plots using a facet in GGplot2.
My first dot plot:
plot1 <- ggplot(marathon, aes(x = MarathonTime, y = first_split_percent)) +
geom_point()
plot1
My second:
plot2 <- ggplot(marathon, aes(x=MarathonTime, y=km4week)) +
…

Garrett
- 43
- 5
1
vote
1 answer
How can I add a year slider to this Ranged Dot Plot in Vega Lite?
I have a dataset with relevant values from 2000-2019, and when I load up the graph with this specification:
"data": {
"name": "chart6",
"url": "https://raw.githubusercontent.com/sebaconstable/sebaconstable.github.io/main/chart6data.csv"
…

Seba
- 25
- 4
1
vote
0 answers
R: Make a box plot using different shapes for data points with no overlapping data points using geom_dotplot()
I have a dataset that looks like this. It's saved as a file called "prescriptivism_scores.csv":
Usage_Guide
Usage_Problem
Prescriptivism_Index
Book 1
who/whom
2
Book 2
who/whom
2
Book 3
who/whom
2.5
Book 4
who/whom
4
Book…

Jordan Smith
- 23
- 3
1
vote
1 answer
How change color after certain intervals in ggplot2?
I have following data:
dput(data)
I used following code to generate the plot:
p <- ggplot(data, aes(Zscore, ID))
p + geom_point(aes(colour=pval, size=Hit)) +
scale_color_gradientn(colours=rainbow(4), limits=c(0, 1)) +
…
user2110417
1
vote
1 answer
Ggplot2 using same value for all X values on graph
CODE:
Lef4 <- read.csv2("Lef4 expression.csv")
head(Lef4_expression)
Lef4graph <- ggplot(Lef4_expression,aes(x = Hour, y = Copies.Lef4.ng)) +
geom_dotplot(binaxis = 'y', stackdir = 'center')
Lef4graph
I am trying to make a simple dotplot from…

Nicholas Furlong
- 11
- 1
1
vote
0 answers
Animated dotplot (using gganimate in R)
I have a data frame of countries and some events in each country. How to animate a dotplot of events for each country through time
df <- data.frame(country = factor(c("Mexico", "USA","France", "USA","France","Mexico", "USA")),
…

user3407369
- 41
- 3
1
vote
2 answers
ggplotly hover text doesn't work with geom_dotplot
I would like to add hover text annotations to a dot plot in R. But ggplotly doesn't seem to work with geom_dotplot.
I would like the final dotplot to look like something this:
df <- data.frame(year = c("2000", "2005", "2005", "2010", "2010",…

Reed Cooley
- 31
- 4
0
votes
0 answers
Warning: Scaling data with a low number of groups may produce misleading results
When I reduce the number of identity in DotPlot the script return the following warning: "Warning: Scaling data with a low number of groups may produce misleading results"
I use this command:
DotPlot(object, features = gene_list, idents=cl, scale =…

ASN
- 1
0
votes
0 answers
Remove to the DotPlot the genes with the same expression between the identity
I want to remove from the dot plot the genes that have the same expression in the different identities (clusters).
I do my DotPlot with this command:
DotPlot(S_obj, features=gene_int) + RotatedAxis()
I have big list of gene and I want to select only…

ASN
- 1
0
votes
0 answers
Decrease font size of y axis on R software code
I am using the following code for dot plot.I have to write name of Indian states in y axis. but I am unable to control the font size.
dotchart(data, xlim = c(0, 1), pch = 20, col=c("darkblue","darkgreen"))
axis(2, at=seq(1,36, by=1), labels =…
0
votes
0 answers
Dotplot of enrichGO results with All of the Ontology terms on same plot for comparison arranged on the basis of the category
I want to create such a dotplot with dotplot of clusterprofiler. Here you can see that the Ontology terms are arranged on same plot with labels at the left of the plot. I was wondering if this can be done in a way that top five ontology terms for…

Saleh Sarwar
- 1
- 2
0
votes
0 answers
How to overlay a boxplot with a dot plot in R
I created a boxplot for my data but want to overlay it with a dotplot of the same data but im not sure how to modify my code to do this. This is my current code and the graph I produced:
data_GAM1<-subset(data,Gene=="GAM1")
boxplot(logRE ~ Sort,…

Ali
- 1
- 2