I appreciate if someone can point me right approach to have specific number of ticks in x axis.
Basically I want to have fixed 6 number of ticks for x axis. Surprisingly, below code generates correct number of ticks for y axis but not for x axis
Dummy_DF = data.frame('x' = 0:60, 'y' = runif((1 + 60), 1, 90))
plot(gvisLineChart(Dummy_DF, xvar = "x", yvar = "y",
options = list(width = 940, height = 500, legend = 'none', title = "",
series = "[{color:'#e8cec5', lineWidth: 1}]",
hAxes = paste("[{title:'", "Days", "', ticks: [",
paste(sort(unique(round(c(seq(0, 60, length.out = 6), 60), 0))), collapse = ','),
"], titleTextStyle: { italic: false}, minValue:", 0, ", maxValue:", 60, "}]", sep = ""),
vAxes = paste("[{title:'", "", "', ticks: [",
paste(round(sort(unique(c(seq(0, 100, length.out = 11), 100))), 0), collapse = ','),
"], format:'#.#', titleTextStyle: { italic: false}, minValue:", 0,
", textPosition: 'out', maxValue:", 100, "}]", sep = ""))))