powered by
Function to create annotations arguments from a data frame
df_to_annotations_labels(df, xAxis = 0, yAxis = 0)
A data frame with x, y and text columns names.
x
y
text
Index (js 0-based) of the x axis to put the annotations.
Index (js 0-based) of the y axis to put the annotations.
# NOT RUN { df <- data.frame(text = c("hi", "bye"), x = c(0, 1), y = c(1, 0)) df_to_annotations_labels(df) # }
Run the code above in your browser using DataLab