Questions tagged [geom-point]
215 questions
0
votes
2 answers
ggplot: create equally spaced scale for unevenly distributed breakpoints
I'm plotting 2 variables (frequency and fold change) by geom_point. As in the figure below, the size corresponds to the frequency and colour to the fold change (FC <1.5 = green, >1.5 = red). To distinguish fold change below 1, I have introduced more…

WC Lim
- 15
- 3
0
votes
1 answer
values of geom_lines out of scale and geom_label with visual contamination in overlapped graph with ggplot2
EDITED: in response to comments, i put output from code
I'm learning graphing with ggplot and have made quite a bit of progress in getting the visualization I need. However, I haven't been able to find references to two specific problems:
The data…

Sebastián Valladares
- 11
- 3
0
votes
1 answer
geom points are not placed on the boxplot?
I don't know how to align the dots to each belong to it is box plot.
Why they are appearing like that?
I found this post, but it is answering the dodging part which is not part of my code
here is my…
0
votes
1 answer
R: Sort points in ggplot
I have the following dataframe and I want to generate a scatter plot with points ordered by date.
structure(list(cluster = c("uid_1", "uid_2", "uid_3", "uid_4",
"uid_5", "uid_6", "Cluster_07", "Cluster_07", "Cluster_07", "Cluster_07",
…

Prakki Rama
- 93
- 7
0
votes
1 answer
Different data in ggplot (geom_point) graphically not comparable (point sizes)
I would like to visualize several datasets with ggplot as a scatterplot. The problem is that the point sizes are not comparable. The point for 20 for exampe in plot 1 is larger than in plot 2.
The problem can be solved with the limits command.…

Erik Meier
- 61
- 3
0
votes
1 answer
r ggplot geom point add border with different color and shape
I have the following initial situation:
I have made the colour and shape of the points in a scatter plot dependent on the same variable. But because the points overlap, you can't see the individual data points very well, so I need a line.
My…

Maurice Hüttemann
- 43
- 5
0
votes
2 answers
Order odds ratio plot by groups in ggplot2 R
I am plotting a set of Odds Ratios for 18 variables which fall within 3 groups.
I would like the variables to be ordered by group, as well as coloured by group. So far I have managed to colour the points by group - but cannot figure out how to stop…

bellbyrne
- 67
- 7
0
votes
0 answers
Can I manually reorder my y axis in ggplot2?
I am attempting to plot a bubble plot using the geom_point function in ggplot2. The y values represent a comparison of differentially expressed genes between two tissue types, but there are two comparisons for each two tissue types, each going the…

melita.t.r
- 1
- 1
0
votes
0 answers
geom_point() doesn't completely color a dot when the sizes of it is too big
I want to fill the inside of the dots completely but there are some white spaces inside the dots in a geom_point()
I ran the following code :
library(ggplot2)
set.seed(1)
ggplot(data.frame("Year" = seq(2010, 2019,1),
"Value" =…

bpvalderrama
- 357
- 2
- 8
0
votes
1 answer
Changing the shape of different groups within a column using geom_point
I am trying to create a geom_point graph and within a column, I have different groups. I want each group to be represented in a different way, e.g. A - Square, B - Triangle etc. Is there any way to do this?
Sample of table
Treatment
Time…

Rachel97
- 3
- 3
0
votes
2 answers
How to choose only top five options in scatterplot
I want to choose only the top five options in a scatterplot. Here's the code:
library(dslabs)
data(polls_us_election_2016)
polls <- polls_us_election_2016 %>%
filter(state == "U.S." & enddate >= "2016-10-31" &
(grade %in%…

Madhav Ddas
- 49
- 5
0
votes
0 answers
Only some points are changing shape. I have several points that are not changing shape though
I'm trying to create APA style figures where I have both individual data points and the best fitting lines of two different levels of a variable. When I adjust the shape of my points using geom_point, it is not changing all of my points. See code…

RforDummies
- 21
- 3
0
votes
1 answer
How to assign unique point colors in faceted ggplot
I am making a facet plot and trying to select the color I want for each plot (olivegreen and olivegreen3 in this case).
I need to plot temp versus lat faceted by year
library(tidyverse)
d.f. <- data.frame( year = c(rep(2013, 10),rep(2015,10)),…

j-asano
- 35
- 4
0
votes
0 answers
How to stop geom_point size to show up in legend
I am trying a simple plot from PCA
I have plotted this data using ggplot2. But size is showing up on legend. How to stop that.
Here is my code.
> dput(colData)
structure(list(Sample = c("S21_D2", "S21_D10", "S21_D10", "S21_D15",
"S131_D2",…

user3042163
- 41
- 6
0
votes
1 answer
Can you only plot certain points?
I'd like to plot mean affective responses (-5 to 5 were possible) per time point (0, 1, 2, 3). Time point 0 is the minute 0 , time point 1 is minute 1 to 13, time point 2 is minute 14 to 23 and time point 3 is minute 24 to 33. But on the x-axis I…

Isabell
- 11
- 2