Gray series

I use the chartSeries function from the quantmod package, and the theme I use is white.mono. The diagram is pretty clean, but I want to remove the horizontal gray lines that intersect the y axis.

Does anyone know how to disable them? Also, is it possible to disable the last price displayed in the upper left corner? Here are my options:

chartSeries(finalData[,1:4],
     name="GCQ4 Comdty: GOLD 100 OZ FUTR Aug14",
     theme=chartTheme('white.mono'),
     type="bars",
     bar.type='ohlc',
     major.ticks='months',
     show.grid=FALSE,
     log.scale=TRUE)

addLines(h=1388.10,col='red')
addLines(h=1240.20,col='blue')

Thank!

enter image description here

+4
source share
1 answer

To remove a grid, you must set grid.colto NA:

tt <- chartTheme('white.mono')
tt$grid.col <- NA
chartSeries(finalData[,1:4],
 name="GCQ4 Comdty: GOLD 100 OZ FUTR Aug14",
 theme=tt,...)
+3
source

Source: https://habr.com/ru/post/1544991/


All Articles