G
G
Gokilla2018-05-13 22:21:09
R
Gokilla, 2018-05-13 22:21:09

Plot a histogram of non-numbers in R?

There is a column from the color database:
x=c("magenta","grey" ,"brown","red","blue","aqua");
etc. only about 20 colors what command to display them in the histogram?
hist(orders_class$color); gives Error in hist.default(orders_class$color) : 'x' must be numeric

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question