2017-05-05 1 views
0

Ich möchte meinen Text in plot_net ändern, aber keine der Optionen funktioniert für mich. Ich versuche,Wie ändert man die Schriftgröße in der Eigenschaft plot_net von phyloseq?

p <- plot_net(physeqP, maxdist = 0.4, point_label = "ID", color = "Cond", shape = "Timeperiod") p + geom_text(size=15) 

Das bin ich

"Error: geom_text requires the following missing aesthetics: x, y, label".

jemand gibt Fehler Kann mir bitte sagen, wie kann ich das Problem beheben?

Ich möchte nicht Legenden oder die Achse Größe ändern, aber die Knoten Text.

this image is drawn using phyloseq but since the font size is very small, i want to make it prominent.

Antwort

0

Ohne Beispiel ist es schwer zu reproduzieren.

p <- plot_net(physeqP, maxdist = 0.4, point_label = "ID" 
    , color = "Cond", shape = "Timeperiod", cex_val = 2) 

Ich glaube, das ist mit dem NeuralNetTools-Paket.

Versuchen Sie es mit: cex_val numerischen Wert, der angibt Größe von Textetiketten, Standard 1

https://www.rdocumentation.org/packages/NeuralNetTools/versions/1.5.0/topics/plotnet

+0

Hallo! Danke für die Antwort ... Hier sehen Sie das Beispiel tatsächlich. https://joey711.github.io/phyloseq/plot_network-examples.html –

Verwandte Themen