Black Lives Matter. Please consider donating to Black Girls Code today.

Multiple properties in updatemenus

I’m struggling to get the correct R syntax to change two properties using the updatemenus and restyle buttons. I’d like to change both line color and line width. I can get line color changes working, but not both. The various options I’ve tried include:

list(method='restyle', label='A', args=list('line.color', color.list, 'line.width', width.list))

list(method='restyle', label='A', args=list(line.color=color.list, line.width= width.list)

list(method='restle', label='A', args=list(list('line.color', color.list),
                                                            list('line.width', width.list))

But I’m running out of ideas - any suggestions?