I currently have to learn about Rstudio and I am a bloody beginner in it. My plan was to create multiple plots and merge them together, but I already get an error code I cant solve right at the beginning.
I started like this:
Data_v_S<- Data_Kinetik[1:4,2]
Data_v_S$"[NAD+] 0,1867 mmol/L"<- Data_Kinetik[1:4,6]
Data_v_S$"[NAD+] 0,2667 mmol/L"<- Data_Kinetik[5:8,6]
Data_v_S$"[NAD+] 0,4667 mmol/L"<- Data_Kinetik[9:12,6]
Data_v_S$"[NAD+] 1,8667 mmol/L"<- Data_Kinetik[13:16,6]
x <- Data_v_S$`[EtOH] mmol/L`
y1 <- Data_v_S$`[NAD+] 0,1867 mmol/L`
plot(x,y1,col="red",type = "b",ylab = "[DE/min]",xlab = "[EtOH] mmol/L")
but I always get the error:
Error in xy.coords(x, y, xlabel, ylabel, log) :
'x' and 'y' lengths differ
My data:
# A tibble: 4 x 5
`[EtOH] mmol/L` `[NAD+] 0,1867 mmol~ `[NAD+] 0,2667 mmol~ `[NAD+] 0,4667 mmol~ `[NAD+] 1,8667 mmol~
<dbl> <dbl> <dbl> <dbl> <dbl>
1 2 0.225 0.242 0.337 0.473
2 1 0.180 0.210 0.284 0.409
3 0.5 0.138 0.167 0.232 0.347
4 0.25 0.1 0.113 0.162 0.255
Can anyone tell me what I am doing wrong?

