![]() ![]() Usually it follows a plot(x, y) command that produces a graph. Library ( plotly ) month % add_trace ( y = ~ low_2014, type = 'scatter', mode = 'lines', fill = 'tonexty', fillcolor = 'rgba(0,100,80,0. The lines( ) function adds information to a graph. ![]() Library ( plotly ) x % add_trace ( y = ~ y_television, type = 'scatter', mode = 'lines', line = list ( color = 'rgba(67,67,67,1)', width = 2 )) fig % add_trace ( y = ~ y_internet, type = 'scatter', mode = 'lines', line = list ( color = 'rgba(49,130,189, 1)', width = 4 )) fig % add_trace ( x = ~ c ( x, x ), y = ~ c ( y_television, y_television ), type = 'scatter', mode = 'markers', marker = list ( color = 'rgba(67,67,67,1)', size = 8 )) fig % add_trace ( x = ~ c ( x, x ), y = ~ c ( y_internet, y_internet ), type = 'scatter', mode = 'markers', marker = list ( color = 'rgba(49,130,189, 1)', size = 12 )) fig % layout ( title = "Main Source for News", xaxis = xaxis, yaxis = yaxis, margin = margin, autosize = FALSE, showlegend = FALSE, annotations = television_1 ) fig % layout ( annotations = internet_1 ) fig % layout ( annotations = television_2 ) fig % layout ( annotations = internet_2 ) fig
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |