Questions tagged [curvesmoothing]

17 questions
-1
votes
1 answer

calculate x-value of curve maximum of a smooth line in R and ggplot2

data <- dput(data): structure(list(x = 1:16, y = c(-79.62962963, -84.72222222, -88.42592593, -74.07407407, -29.62962963, 51.38888889, 79.62962963, 96.2962963, 87.96296296, 88.42592593, 73.14814815, 12.96296296, -63.42592593, -87.03703704, -87.5,…
-3
votes
1 answer

How to remove outliers from a data array in R

I would like to locate and remove the outlier in the measurement and replace with a smoothened value to capture the trend better. Please find the figure below Data with outliers
1
2