My x-axis has values from 0 to about 150. It goes till 99 then starts 100 over the 1 and so on. please suggest some solution.
It is like 100 is showing over 1, 102 on 2 and so on. It is all congested.
structure(list(Runs = c(12, 37, 25, 54, 31, 2), Mins = c("33",
"82", "40", "87", "45", "6"), BF = c("22", "67", "38", "66",
"46", "2"), `4s` = c("1", "6", "4", "7", "3", "0"), `6s` = c("0",
"0", "0", "0", "1", "0"), SR = c("54.54", "55.22", "65.78", "81.81",
"67.39", "100"), Pos = c("2", "2", "1", "1", "1", "7"), Dismissal = c("lbw",
"caught", "run out", "bowled", "lbw", "not out"), Inns = c("1",
"2", "1", "1", "2", "1"), ...10 = c(NA, NA, NA, NA, NA, NA),
Opposition = c("v Sri Lanka", "v Sri Lanka", "v Sri Lanka",
"v Sri Lanka", "v Sri Lanka", "v Sri Lanka"), Ground = c("Dambulla",
"Dambulla", "Colombo (RPS)", "Colombo (RPS)", "Colombo (RPS)",
"Colombo (RPS)"), `Start DateAscending` = structure(c(1219017600,
1219190400, 1219536000, 1219795200, 1219968000, 1252886400
), tzone = "UTC", class = c("POSIXct", "POSIXt"))), row.names = c(NA,
-6L), class = c("tbl_df", "tbl", "data.frame"))
Code:
> attach(virat)
> library(ggplot2)
> ggplot(virat,aes(x=BF,y=Runs))+geom_point()