Ignoring one of the factors of ggplot in R
问题 I use ggplot to plot my variable and attributes. I am using ggplot and factor by using the following code: require(ggplot2) require(reshape2) df <- data.frame(HMn25_30$avg,HMn25_30$h) df[3] = c("Normal", "Normal", "Normal", "Normal", "Normal", "Normal", "Normal", "Normal", "Normal", "Normal", "Outlier", "Outlier", "Outlier", "Outlier", "Outlier", "Outlier", "Normal", "Outlier", "Outlier", "Normal", "Normal", "Outlier", "Outlier", "Normal", "Normal" ) names(df)[1] <- 'Node 25' names(df)[3] <-