trying to do a barchart or boxplot
0
0
Entering edit mode
@carolmtzibtunammx-3538
Last seen 10.1 years ago
Hi everybody! I am a beginner in R, and I want to do a barchart with my data. This is the way it looks like (it is a data.frame, but it can a matrix as well): 1 2 3 1 Up Down Up 2 Up Up Up 3 NC Up NC 4 Down NC Down 5 Down NC Up 6 Down Down Down I want to get something like this: _ 1000 | |U| 900 | |_| 800 | |D| . | |_| . | |N| . | |C| 0 |_| |_ _ _ _ _ _ _ _ _ _ 1 2 3 I have tried this: > barplot(a, width = 1, space = NULL, + names.arg = colnames, beside = FALSE) Error en barplot.default(a, width = 1, space = NULL, names.arg = colnames, : incorrect number of names Adem?s: Warning messages: 1: NAs introducidos por coerci?n 2: NAs introducidos por coerci?n 3: NAs introducidos por coerci?n > barplot(a, width = 1, space = NULL, beside = FALSE) Warning messages: 1: NAs introducidos por coerci?n 2: NAs introducidos por coerci?n 3: NAs introducidos por coerci?n I will apreciate if you can help me. Regards, Carol ---------------------------------------------------------------- Este mensaje fue enviado desde el servidor Webmail del Instituto de Biotecnologia.
• 958 views
ADD COMMENT

Login before adding your answer.

Traffic: 537 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6