Unable to draw a graph [new to R]

Reshape your data into a long format, you can use the tidyr::pivot_longer() function.

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.