Problème graphique barplot R
Bonjour à tous,
J'ai un fichier .txt tabule comme l'exemple suivant:
file percmapped Percdedup percunique
Coh03-C26-R1 12.54 8.38 7.72
Coh05-C22-R1 26.35 20.57 19.58
Coh05-C22-R2 27.35 21.02 20.01
Je souhaite faire un barplot.
J'ai donc fait les commandes suivantes:
Code:
1 2 3 4 5 6 7 8
|
data <- read.table("Book1.txt", header = TRUE, sep = "\t", dec = ",")
head(data)
m <- t(as.matrix(data[1:4]))
colnames(m) <- data[,1]
barplot(m, main = "STAR pipeline", beside = T, ylab = "Percentage", col = colours, las = 2, cex.names = 0.6) |
Lors du barplot, R me renvoie le message d'erreur ci-dessous:
Code:
1 2
|
Error in -0.01 * height : non-numeric argument to binary operator |
Que ce que cela veut dire ? Comment faire mon barplot ?
Merci pour votre aide.