I have a question regarding plotting a line through some datapoints I have.
The data shows that the efficiency of my expt levels off at about 0.8-0.9. However, when I plot geom_smooth() it appears as if it makes a dip again. When I plot with geom_line() the transition from 1 point to the next is not as smooth as I'd like it to have.
the values i used are:
x <- c(0.20, 0.44, 0.72, 0.86, 0.88, 0.89)
time <- c(0, 5, 15, 40, 80, 120)
dfs2 <- data.frame(x, time)
I made a dataframe out of these to vectors called dfs2. I have used either geom_line() or geom_smooth() (both are shown in the code below but only one is used)
plot <- ggplot(dfs2, aes(x = `time`, y = `x`)) +
geom_point() +
geom_line() +
geom_smooth(span = 2, se = F) +
xlim(0, 120) + ylim(0, 1)
How do i get this data to show as a line that levels off as if you would plot with geom_line() but without the sharp corners from one point to the next
Thanks in advance!