Off topic:Shift label to upside in ggscatter graph
0
0
Entering edit mode
2.5 years ago
whrhkdrhs • 0

Hi. I'm R starter. I'm using ggscatter to draw a regression line. The label is sitting down like that. How can I move up? The code is shown below.

enter image description here

ggscatter(JJ_1year, x = "Ammonium", y = "Potassium",
          add = "reg.line",                         # Add regression line
          color = "Season", palette = "jco",           # Color by groups "Season"
          shape = "Season",                            # Change point shape by groups "Season"
          fullrange = TRUE,                         # Extending the regression line
          rug = FALSE                                # Add marginal rug
)+
    stat_cor(method = "spearman", aes(color = Season))           # Add correlation coefficient
R ggscatter ggpubr • 2.0k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2177 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6