I'm trying to make a histogram but I keep running into the an error message. Here is my code
library(readxl)
data <- read_excel("data.xls")
hist(data)
This is my sample. I want to create a histogram the y-axis be 0-100, x-axis (safely, basic, limited, etc) the numbers (39,29,8,12,12) be in the graph. Does this help make sense?
Safely Basic Limited Unimproved Open
39 29 8 12 12
Error in hist.default(data) : 'x' must be numeric
What am I doing wrong? I don't know understand the error message.