Verbindungspunkte

Ich habe die folgende Handlung

require(ggplot2)

dtf <- structure(list(Variance = c(5.213, 1.377, 0.858, 0.613, 0.412, 0.229, 0.139, 0.094, 0.064), Component = structure(1:9, .Label = c("PC1", "PC2", "PC3", "PC4", "PC5", "PC6", "PC7", "PC8", "PC9"), class = "factor")), .Names = c("Variance", "Component"), row.names = c(NA, -9L), class = "data.frame")

ggplot(dtf, aes(x = Component, y = Variance)) +
geom_point()

Ich möchte die Punkte einfach mit geraden Linien verbinden. Ich habe es versucht+geom_line() aber das erzeugte einen Fehler

Antworten auf die Frage(2)

Ihre Antwort auf die Frage