Plot a Graph on Imported Dataset in Excel

Hi RClub Folks,

I have imported Excel Dataset contains Months and and Values, I wanna plot a Line Graphs using Columns and Rows, Can anyone share, initial codes and commands. thanks

Ploting a Graph

1 Like

First, you need put the example data, use dput() or repex-package.

If your data frame is dt put this. A basic example for you:

ggplot(dt, aes(x=Months, y= Values, fill=Months)) +  # Use fill for color.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.