I want to add a vertical line at days==0 that extends from the value of y where days==0 among x==0, to the value y where days==0 among x==1. Th ...
I want to add a vertical line at days==0 that extends from the value of y where days==0 among x==0, to the value y where days==0 among x==1. Th ...
I am trying to create a plot in ggplot2 showing the results of environmental sampling conducted over time. My data set has deployment and retrieval da ...
I want to add a series of arrows connecting each observation in geom_point as in the graph: I understand that geom_segment is meant to be used, but ...
I have the following code with its corresponding plot: I wanted to reduce the space within the bars and the label in the y axis. So, I added the ...
Aim: add the linetypes of the segments to the legend, as well as the colour. Problem: only the colour is showing. Data: m = as.data.frame(matrix(c( ...
I would like to adjust the vertical position of the geom_segment when x is categorical. In the example below the geom_segment is centered around the v ...
I am trying to create a graph that looks like the example below. Namely, I am looking to add arrows that point in the direction of movement from 2019 ...
Aim: produce a bar plot representing a time series of measurements (variables) taken at 14 Sites (factors), including drawing horizontal lines to demo ...
I have would like to apply a continous color ramp to a vertical line in ggplot2. My plot is below. I have applied the continous color ramp to the geom ...
I am conducting a study of a number of patients with a disease, and using an ordinal scale assessment of functional status at 3 different time points. ...
I want to draw a bar chart with three columns, where two arrows start from one column to the other two columns and these arrows do not overlap each ot ...
I'm having trouble displaying different fill colors with geom_point, only black shows up. I know I can use color to show different colors but it doesn ...
I have a data set with information of where individuals work at over time. More specifically, I have information on the interval at which individuals ...
I defined a very simple for loop in which I plot a normal distribution with a vertical red line and a smaller vertical black segment. The normal distr ...
I have a geom_segment in a plot and would like its size to scale relative to the y axis. For example: Produces a horizontal segment above the barc ...
The plot code below makes the segment line congverge at the center of the descrete x variable for all colours. What can be done so that the segment li ...
I am having a 'classical' ggplot problem, very similar to the question discussed here. I tried to solve it like suggested there, but somehow it does n ...
Below is a reprex of the data I'm working with. The geom_segment calls make the rendering very sluggish. Is there an alternate way to achieve the same ...
I'm creating an illustration of how loess works. My two queries are at the end of this question. First, setup: The main plot: Insets Question ...
Im trying to connect my points with a line, like this, but for my plot: My plot looks like this: I've tried to use geom_segment but it hasn't wo ...