[R] Choosing colours for lines in ggplot2

2023-08-02 Thread Nick Wray
Hello - I am trying to plot flows in a number of rivers within the same plot, and need to colour the lines differently, using a colour-blind palette. Code beneath works but has colours assigned by the program I have made some simple dummy data: ## code 1 cb8<- c("#00", "#E69F00", "#56B4E9",

Re: [R] Plotting Fitted vs Observed Values in Logistic Regression Model

2023-08-02 Thread Rui Barradas
Às 14:57 de 01/08/2023, Paul Bernal escreveu: Dear friends, I hope this email finds you all well. This is the dataset I am working with: dput(random_mod12_data2) structure(list(Index = c(1L, 5L, 11L, 3L, 2L, 8L, 9L, 4L), x = c(5, 13, 25, 9, 7, 19, 21, 11), n = c(500, 500, 500, 500, 500, 500,

Re: [R] Choosing colours for lines in ggplot2

2023-08-02 Thread Rui Barradas
Às 18:10 de 02/08/2023, Nick Wray escreveu: Hello - I am trying to plot flows in a number of rivers within the same plot, and need to colour the lines differently, using a colour-blind palette. Code beneath works but has colours assigned by the program I have made some simple dummy data: ##