graphics - How can I modify how bars are displayed on a R barplot -


i plot 2 graphs of same time serie, first 1 represent value, second frequency of same variable.

date   1  2  3  4  5  6  7 ... value v1 v2 v3 v4 v5 v6 v7 ... freq  f1 f2 f3             ... 

the first graph usual plot, second graphics::barplot, problem want x-ticks on same vertical line (after same date). seems barplot centering bars vertical line representing date shifted (zoom on graph bellow see mean)

how can arrange ?

enter image description here

you without using barplot(), rather plot() different plot "type" argument. , make sure x-axis values same.

an old example of mine bollinger bands plotting @ r graph gallery. uses segments() volume bars.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -