Geom_line and geom_point not connecting for all paired samples
I had asked a previous question on StackOverflow and followed the accepted answer (previous post here)
Plotting paired samples in ggplot2 using geom_line and geom_point
I am trying to investigate the differences between Blood and SF (these are two levels of a variable called “Tissue”). I have 4 samples from Blood and 4 samples from SF which are paired so during plotting, I am envisioning 4 dots for each and 4 lines connecting the paired samples from each tissue type. The y-variable to be plotted is called “freqcd8bytissue”. I hope to then facet it by the different levels of the variable “clusters_names”.
Geom_line not connecting all paired points (ggplot2)
I am interested in plotting paired samples from my dataset. Here, I have 4 samples taken from blood and 4 samples taken from SF (which are paired). I am interested in plotting the variable “freqcd8bytissue” for this paired analysis using geom_line and geom_point in ggplot2, with each sample being plotted as a separate point. This is then facetted by a variable “clusters_names”.
Is there a function within ggplot to change the numbers on this graph into words? (Rstudio)
Visualising presence/absence data over 10 years
I’m trying to create some for of graph to present the presence and absence of individuals over a ten year span but I’m struggling to find the right code.
Why am I getting 8 error bars for each datapoint on this plot in R?
I am trying to make a plot in R containing the average Pb isotope ratios(206Pb/207Pb and 208Pb/207Pb) from 2 sites (“control” and “activesite”). I want 4 error bars on each data point (site) showing the standard deviation. I already calculated the average and standard deviation in excel so instead of pasting all of my data I have just listed the averages as “avg206Pb207Pb” and standard deviations as “sd206Pb207Pb”. This code has previously run just fine on my other data but for some reason I am now getting 8 error bars for each data point. Additionally usually the error bars will have perpendicular lines at the end of them and these don’t. What am I missing here?