I have a dataset(CypData) in which a variable ($mutation) is categorical, but when trying to make a histogram for this variable like so:
hist(CypData$mutation)
I get an error saying 'x' must be numeric. Making a histogram of $age works fine.
Does anyone know what's going on? I figured this should be same as the variable 'spiecies 'in the iris dataset. Disclaimer: Im very new.