0

I made a boxplot without outliers.

boxplot(data, names = names(files), las = 2, outline=FALSE)

Now, I am trying to add stripchart on it:

stripchart(data, method = "jitter", add = T, col = "red")

Plot looks something like this:

[Plot](https://1drv.ms/i/s!AsZzCdhRCQ3YkAIOnmUnEUMx8049)

I understand the reason why plot is like this: because I have not plotted outliers with boxplot. How to add stripchart properly (without outliers)?

gung - Reinstate Monica
  • 11,583
  • 7
  • 60
  • 79

1 Answers1

1

I have solved my problem.

b <- boxplot(data, names = names(files), las = 2, outline=FALSE)
stripchart(data[!data %in% b$out], method = "jitter", add = T, col = "red",
           vertical = T)