✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🧬 Learn how to build RNA-Seq data apps with Python & Dash. Register for the May 20 Webinar!

Line plotting on small dataset

Hello to all
I know this seems to be a really basic question but im struggling on how to plot this dataset. I need 3 colored lines (each line for each of the rows (1,2,3). The x axis needs the column names and the Y axis represents each one of the numeric values.

i will appreciate your help

a %>%
mutate(rn = row_number()) %>%
pivot_longer(cols = -rn, names_to = “variables”, values_to = “value”) %>%
mutate(variable = factor(variables, levels = colnames(a))) %>%
plot_ly(x = ~variable, y = ~value, split = ~rn, type = “scatter”, mode = “bar”)