Ich möchte eine lineare Regressionslinie zu einem halblogarithmischen Punktplot hinzufügen, aber ich kann nicht scheinen, dass es funktioniert.Lineare Regressionslinie zu ggplot2 hinzufügen dotplot auf R
mm = c (44,637, 41,252, 38,717, 36,176, 34,275, 32,366, 30,676, 29,407, 27,715, 26,866)
bp = c (100, 200, 300, 400, 500, 600, 700, 800, 900, 1000)
ladder = data.frame (mm, bp)
ggplot2.dotplot (data = Leiter, xName = 'bp', yName = 'mM', bändigen Werken = 'Ladder ') + scale_y_log10 (Brüche = trans_breaks (' log10 ', Funktion (x) 10^x), Etiketten = trans_format (' log10 ', math_format (10^.x)))
Ich habe versucht> geom_smooth,> geom_abline und> stat_smooth. Keine davon funktioniert. Hilfe würde sehr geschätzt werden.