Questions tagged [geom-point]
215 questions
0
votes
0 answers
R FlexDashboard Panel Horizontal Size
I'm working on a flex dashboard app, and when using geom_point, the graph seems to narrow.
Is there any way to make it wider? Fit full screen?
Here is the code:
eigpm %>% clean_names() %>%
mutate(days_since_move_in = as.integer(gsub(",", "",…

Humberto R
- 19
- 4
0
votes
1 answer
Is there a way to plot % for each group in geom_point
I want to plot in the X axis the % of patients in each treatment allocation that present the different diseases. However, using this code below I only get the absolute number of patients that present each disease in each treatment allocation.…

Sara
- 185
- 1
- 9
0
votes
0 answers
Adding points from other dataset to boxplot: how to separate based on same fill
I am trying to recreate this plot:
I have data on actual habitat presence and random data on expected habitat presence for 8 years. I want to see if the presence of bird species depends on the presence of certain crop types.
The code for the plot…

Roos
- 31
- 2
0
votes
1 answer
ggplot2 geom_point position adjustment
I have got the following data frame
species <- c("Acer pseudoplatanus", "Acer pseudoplatanus")
position <- c("o", "c")
pd <- c(-0.1, -0.2)
sd_pd <-c(0.001, 0.023)
md<- c(-0.3, -0.45)
sd_md <-c(0.024, 0.03)
df <- data.frame (species,position, pd,…

user18487205
- 41
- 5
0
votes
0 answers
Change color, fill, and shape on ggplot scatterplot
I am trying to create a scatterplot with pesticide concentrations from week 1 on the x axis and from week 2 on the y axis. I would like to make those who live near an agricultural field one color filled in, and those who live far from an…

Carly Barker
- 1
- 1
0
votes
1 answer
unable to plot sd bars in ggplot
I was trying to insert the sd bars in geom_point in a data of decomposition rates of different time observations and species using the code below. My data have two factors time and specie and the varable "rem". I used the aggregate function to group…

Ane Fortes
- 11
- 1
0
votes
0 answers
geom_point and geom_errorbarh adjusting with position dodge
The data point and error bars are far away in the generated figure.
Here is the script
dat_combined %>%
arrange(depth_cm) %>%
ggplot(aes(x = mean_delta_13C, y = depth_cm)) +
geom_errorbarh(aes(xmin = mean_delta_13C - sd_delta_13c,
…

J.M
- 25
- 4
0
votes
3 answers
PCA plot by ggplot2
I have plotted a PCA plot in R using ggplot2's geom_point function.
I would like to have a black color border around the points.
This is the code and picture before i gave color argument to geom_point
So here i want to introduce border around the…

Retsi
- 45
- 3
0
votes
1 answer
Overlay dots on a stacked bar chart and include a legend key on blank background for the dots
I need a stacked bar chart showing the diamonds by cut and clarity with count on the primary y-axis (left-hand-side) and the average price on the secondary x-axis (right-hand-side). How do I include a legend item for the dots? The desired plot…

hnguyen
- 772
- 6
- 17
0
votes
0 answers
Why are the colours in the wrong order for the scatterplot part of my raincloud plot?
R beginner here :) Took me ages to finally get the code for this raincloud plot to work, but whatever I try, the colours I define in the scale color manual do not add up with the colours for the scatterplot and the colour legend. I want Healthy…

Anna M.
- 1
0
votes
0 answers
geom_point() shape with unicode
I'd like to use "pentagon" shape for my geom_point() graph.
But I can't.. Is it the font problem?
My code is as follow:
grp <- ggplot(data = whole.df, aes(x = whole.df[ ,tar.in], y = whole.df[, tar.y]))+
geom_point(aes(shape = Diet_Case), size…

S. Jeon
- 5
- 2
0
votes
0 answers
How to format ggplot points with nested facets
I have a dataset where I analysed SNPs, INDELs and SVs with two different tools DeepVariant and PanGenie. Now, DeepVariant only assesses SNPs and INDELs, whereas PanGenie is more tailor-suited for SVs. So, when I plot a comparison between the two…

Matteo
- 17
- 4
0
votes
1 answer
ggplot with geom_point doesn't show colorbar
I have managed a line-dot plot with ggplot2 where the dots display Intensity (y-axis) over Dates (x-axis), and also show the color of another value of interest.
However, I cannot manage to make it display the colorbar with the values. It si just…

Markus
- 57
- 1
- 7
0
votes
1 answer
Changing colour of data points according to interaction term using plot_model
Im currently running a Random Intercept Model in which I am regressing the average change in welfare depending on the preferences of the richest 5 percent on the income population in various countries and interacting this with how financially…

user21581187
- 21
- 1
0
votes
1 answer
ggplot scatterplot for 2 categorical variables, 1 categorical variable by color
I like the ability to easily separate data into different series using ggboxplot. The x-axis labels can remain easy to read while a 2nd categorical variable is shown via adjacent colored series.
p <- ggboxplot(df_dummy, x="Trt_Amend",…

LabRat01010
- 85
- 1
- 8