Skip to content

Commit

Permalink
Rework jitter
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomsch committed Dec 9, 2023
1 parent 9cdfff6 commit 31ea9be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions analysis/paper/performance_distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ inputFile = args[1]
outputFile = args[2]


data <- read.csv(inputFile, header = FALSE, col.names = c('Project', 'CommitId', 'SmartCommit', 'Flexeme', 'File-based'))
data <- read.csv(inputFile, header = FALSE, col.names = c('Project', 'CommitId', 'SmartCommit', 'Flexeme', 'FileBased'))
data$Commit <- as_factor(data$Commit)

# Convert to long format
data_long = pivot_longer(data, cols = c("Flexeme", "SmartCommit", "File-based"), names_to = 'Tool', values_to = 'Performance')
data_long$Tool <- factor(data_long$Tool, levels = c("Flexeme", "SmartCommit", "File-based"))
data_long = pivot_longer(data, cols = c("Flexeme", "SmartCommit", "FileBased"), names_to = 'Tool', values_to = 'Performance')
data_long$Tool <- factor(data_long$Tool, levels = c("Flexeme", "SmartCommit", "FileBased"))

pdf(outputFile)
flexplot(Performance ~ Tool, data = data_long) + scale_x_discrete(limits = c("Flexeme", "SmartCommit", "File-based"))
flexplot(Performance ~ Tool, data = data_long, jitter=c(0.2,0.01)) + scale_x_discrete(limits = c("Flexeme", "SmartCommit", "FileBased"))
dev.off()

0 comments on commit 31ea9be

Please sign in to comment.