Ich möchte eine Textbox oder einen Informationstext zu einem Plot hinzufügen, der mit plotly erstellt wurde. Es scheint jetzt so. without textWie fügt man Textbox auf Plot in Plotly R?
Ich möchte es mit Text-Box wie folgt machen (keine Notwendigkeit, umkreisen :))).
Der Code so weit:
p <- plot_ly(data=data.mosann, x = ~Combined, y = ~Actual)%>%
layout(shapes=list(type='line', x0= 0, x1= 235, y0=0, y1=235, line=list(color='red',width=3)),
title = 'Scatter Plot Measurements-Combined Improvements MinT',
xaxis = list(title = "Combined MinT", showgrid = TRUE),
yaxis = list(title = "Measurements", showgrid = TRUE))
p
nicht sicher, dass es funktioniert, aber haben Sie versuchen, mit 'ggplot' und konvertieren zu' 'plotly' ggplotly' mit? In 'ggplot' können Sie Text mit der Funktion 'annotieren' hinzufügen. –