display ticks for every second observation (rotated labels)
问题 Having trouble getting my x-axis to look right. I would like the ticks and labels to appear for every second observation. Unfortunately, while my code displays ticks appropriately, label values increase by 1 each time. In other words I would like the tick labels to be 2011-10-21, 2011-10-23, 2011-10-25... . My code currently produces tick labels as 2011-10-21, 2011-10-22, 2011-10-23 ... My data frame looks like: date comp_count 1 2011-10-21 10 2 2011-10-22 3 3 2011-10-23 1 4 2011-10-24 1 5