Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
320 views
in Technique[技术] by (71.8m points)

r - ggplot2 stat summary mean issue - mean now has an oscillating line - issue with saving data.frame?

I hope this finds you safe and well. I am having an issue with my graphs. Yesterday I created waveforms (or a linegraph of means over the course of a time series). I created the graphs and saved the datasets as csvs (note these are relatively large files) - everything looked fine and great. Today, when I opened the files I saved it now has an oscillating mean (which was not their yesterday). Is it possible that the dataset saved in a strange way (note I used write.csv using the default settings)?

Any help would be greatly appreciated.

q <- ggplot(Data, aes(x=time, y=Value, color=Condition,linetype=Chromophore)) + 
  facet_wrap(~Channel, scales='free') +
  geom_vline(xintercept = 0, linetype = "dotted", color="black", alpha = .2) + #accentuate origin
  geom_hline(yintercept = 0, linetype = "dotted", color="black", alpha = .2) + #accentuate origin
  geom_line(stat = "summary", fun.y = "mean") + #show group means   
  labs(x = "Time (s)", y = "Mean Oxy-Hb (uM)") + #label axes
  theme(text=element_text(size=12)) + #set label font size
  scale_linetype_manual(values=c("dotted", "solid"))+
  theme_minimal() #set theme

plot(q)

Example of new graphs

Example of new graph


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...