Ich habe versucht, eine Grafik in der ggplot2 Bibliothek mit dem Zusatz von ggrepel zu ziehen:Fehler - Visualisierung von Daten in ggplot2 mit ggrepel Paket
set.seed(42)
ggplot(mtcars) +
geom_point(aes(wt, mpg), size = 5, color = 'grey') +
geom_label_repel(aes(wt, mpg, fill = factor(cyl), label = rownames(mtcars)),
fontface = 'bold', color = 'white',
box.padding = 0.35, point.padding = 0.5,
segment.color = 'grey50') +
theme_classic(base_size = 16)
Aber ich habe folgende Fehlermeldung:
Error in convertUnit(x, unitTo, "x", "dimension", "x", "dimension", valueOnly = valueOnly) : 'x' argument must be a unit object
Dank ?
Ich lief Ihren Code nur 'Bibliothek (ggplot2)' und 'Bibliothek (ggrepel)' und es lief ohne Fehler. – clemens
Danke. Ich weiß nicht, warum meine Schuld ist? Ich benutze Version R 3.4.0 –
Das gleiche hier, mit ggrepel_0.7.0 und ggplot2_2.2.1 – clemens