To create a boxplot pr box and whisker chart in R studio, we can use Excel csv file as the source of input data. We need two columns in the csv. In my case column1 contains precision and column2 contains the approach type.
The R code is as follows:
x <- read.csv("boxplotR2.csv",header=T, sep=",")
print (head(x))
boxplot(precision ~ approach, data = x, ylab = "Precision",
xlab = "Related Function Recommendation Strategies")
and I get the boxplot
The R code is as follows:
x <- read.csv("boxplotR2.csv",header=T, sep=",")
print (head(x))
boxplot(precision ~ approach, data = x, ylab = "Precision",
xlab = "Related Function Recommendation Strategies")
and I get the boxplot
No comments:
Post a Comment