The 'problem' with your data is that the freq
, temp
& power
variables have very different scales. As a result the variation in especially the freq
variable can hardly be seen when you combine them all in one plot. Moreover, for the other two variables the development over time is hard to see as weel.
In this case it's probably wiser to use a faceted plot:
# transforming the data into a dataframe of the long format
df <- as.data.frame(s)
require(reshape2)
df2 <- melt(df, id="time")
# creating the plot
ggplot(df2, aes(x=time, y=value, color=variable)) +
geom_line() +
facet_grid(variable ~., scales="free_y")
the result: