Displaying 4 results from an estimated 4 matches for "xmelt".
Did you mean:
melt
2010 Nov 29
4
subset
...42.0165, 49.2055), third = c(42.24, 42.992, 37.7419,
42.3448, 41.9131, 44.385, 42.7811, 44.1963, 40.8088, 43.9634,
38.7079, 38.0791, 44.3136, 39.5333)), .Names = c("first", "second",
"third"), class = "data.frame", row.names = c(NA, -14L))
?head(x);str(x)
xmelt <- melt(x)
?names(xmelt) <- c("year","fatPerc")
??str(xmelt);xmelt
?# Subset to plot only the 'first' and third year
firstyear <- subset(xmelt,year ==' first');str(firstyear) # works
# two variables,,doesn't work
firstyear <- subset(xmelt,year ==&...
2010 Nov 29
2
drop levels problem
...42.0165, 49.2055), third = c(42.24, 42.992, 37.7419,
42.3448, 41.9131, 44.385, 42.7811, 44.1963, 40.8088, 43.9634,
38.7079, 38.0791, 44.3136, 39.5333)), .Names = c("first", "second",
"third"), class = "data.frame", row.names = c(NA, -14L))
?head(x);str(x)
xmelt <- melt(x)
?names(xmelt) <- c("year","fatPerc")
? # Year variable is a factor with three levels
?# Subset to plot only 'first' year
firstyear <- subset(xmelt,year=='first');str(firstyear)
#?Plot showing three levels still after I?made the subset
??ggplo...
2009 Sep 09
2
ggplot2: mixing colour and linetype in geom_line
Hi all,
I try to represent a multiple curve graphic where the x-axis is the
temperature and the different y-axes are the different X (X22,X43,X44...)
some X corresponds to the same molecule (22 and 44 are for CO2 for instance)
so I use the same colour for them.
I wanna mix the linetype with the colour to be able to visually see the
difference between X43 and X45
The best I have done up to now
2013 Jul 04
6
ggplot2
Hello Folks,
I have a database of 2000+ days with 35 observations each. I am trying to
modeling a time series by day, but it seems a problem that I don<t have the
time of the observation. I achieve something interesting by using the
barplot function, but I`d rather working with ggplot2, since I have the book
by Hadley Wickham in hands.
I start by transforming my data into a dataframe, but