Hi!! I'm trying to make my DT background more transparent. I've my colours in hexadecimal, for example "@FF8700". I've read that in R we can set the alpha value for opacity with two more digits, for example : "@FF870099". If I try this with barplot, it works:
barplot(1,col="#FF8700")
barplot(1,col="#FF870099")
But when I try it with DT it doesn't work
datatable(ColumnasFact[columna%in%names(dt.fact)],
rownames= FALSE,
options = list(paging=FALSE, dom = 'tip',
columnDefs = list(list(visible=FALSE, targets=2))))%>%formatStyle(
'TipoVar',
target = "row",
backgroundColor =styleEqual(c("bas","esp","atr","opc"),c("#FF870099","#FF9C00","#FFB200","#FFC700"))
)