![]() ![]() Shape = "circle") + # main data is circle Mutate(DDATE = as.Date(DDATE, format = "%d.%m.%y"))Īs the two value are the same you just need to plot them without any transformation & 2nd y-axis markup # Without 2nd axisĪes(x = DDATE, y = RESULTAT, color = LOT.REACTIFS), size = 3, I used your dput data provided just put them separately here ( ) 1st I convert the DDATE to date for more readable x-Axis main_data You just need a way to differentiate data from 2nd data with main data *17142/13553, name = "Temperature" ))Īfter reviewing your data I don't think you need a 2nd Y axis. Scale_y_continuous("Precipitation", sec.axis = sec_axis(~. Geom_point(mapping = aes(x = temp1, y = DATO2$value, color = DATO2$LOT.REACTIFS))+ I'm using the following codes : library(ggplot2) I ploted a Levey-jennnings plot using a main data and i want to plot a seccondary y-axis using ggplot2 from date 18.08.22 to 27.09.22 of this data frame : structure(list(DDATE = c("27.09.22", "21.09.22", "19.09.22", ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |