I have this code for drawing my graphs but I need to set the breakpoints in x axis with a fixed distances.
How do I need to change this code?
data1 <- as.matrix(read.table('$INPUT_FILE1', header = T));
data1.experiment <- as.numeric(data1[,\"Experiment\"]);
data1.obs <- as.numeric(data1[,\"Mean\"]);
data1.method <- as.factor(data1[,\"Method\"]);
df <- data.frame(data1.experiment, data1.method, data1.obs);
orderlist = c("5", "10", "20", "40", "60", "80");
ggplot(df, aes(x = data1.experiment, y = data1.obs, fill = data1.method), ylim=c(0, 380))+geom_bar(stat='identity', position='dodge')+labs(x='$xlabel',y='$ylabel', fill='')+scale_fill_manual(values = c('indianred3','skyblue'), labels = c('DTB-MAC', 'IEEE802.11P'))+scale_y_continuous(limits = c(0, 380))+theme_bw()+theme( panel.grid.major = element_line(colour = 'grey'), panel.border = element_rect(colour = 'black'), axis.line = element_blank(), panel.background = element_blank(), legend.direction='horizontal', legend.position = c(0, 1), legend.justification = c(0, 1), legend.background = element_rect(colour = NA));
For example if I want to draw this data set
Experiment Method Mean
5 IEEE802.11P 73.692058824
10 IEEE802.11P 36.846029412
20 IEEE802.11P 109.911111111
40 IEEE802.11P 238.427111111
60 IEEE802.11P 326.812469136
80 IEEE802.11P 372.041388889
5 DTB-MAC 7.470588235
10 DTB-MAC 27.014705882
20 DTB-MAC 84.032148148
40 DTB-MAC 177.680148148
60 DTB-MAC 244.599555556
80 DTB-MAC 286.52462963
The result I need is x axis with titles of 5,10,20,40,60,80
but with the same gap between them.