Advertisement
henf2701

Untitled

Dec 31st, 2023
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.59 KB | None | 0 0
  1. library(ggplot2)
  2.  
  3. paf1 <- read.csv("C:/rdata/perte.csv", header=TRUE, dec=",", sep=";", fileEncoding="utf-8")
  4. paf1$Perte <- as.numeric(paf1$Perte)
  5.  
  6. pak02 <- ggplot(data = paf1, aes(x = Perte, y = Depth)) +
  7.   geom_path(data = paf1, linewidth = 0.8, color='darkblue') +
  8.   scale_y_reverse(breaks = seq(0, 160, by = 10)) +
  9.   labs(title = "Matière organique par profondeur",
  10.        x = "Matière organique (%)",
  11.        y = "Profondeur (cm)")
  12.   #guides(color = guide_legend(title = "Sampling site"))+
  13.   #theme(legend.position = c(0.85, 0.2),
  14.         #panel.grid.minor = element_blank())
  15.  
  16. pak02
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement