Thank you, it is very helpful.
I tried the following way to generate stacked bar plot for trt 'M6' and
'M12'
However, the label position of legend in 'M12' is not what I want,
actually in the legend I also want to keep "Others" in the bottom(like the
gene order in stacked bar)
In addition, how t
Hello,
Something like this?
g <- unique(as.character(df$gene))
i <- which(g == "Others")
g <- c(g[i], g[-i])
df$trt <- factor(df$trt,levels=unique(as.character(df$trt)))
df$gene <- factor(df$gene,levels = g)
ggplot(df, aes(x=trt,y=freq, fill = gene, group = gene)) +
geom_bar(stat = "identity
Is there possible to generate a barplot in the following link using ggplot?
https://photos.app.goo.gl/E3MC461dKaTZfHza9
here is what I did
library(ggplot2)
df <- read.csv(text=
"trt,gene,freq,cols
M6,ALDH16A1,100.000,red
M6,Others,0.000,lightgrey
M12,ALDH16A1,64.6638015,red
M12,GBE1,2.0
Better read the Posting Guide mentioned in the footer of this and every email
on this list. Attachments can only be among a very few file types and still be
passed through... yours did not.
As for your question, it is very likely that the answer is yes, though since
this list is about the R lan
I have a question about using ggplot.
Is there possible to generate a barplot like the attached file using ggplot?
Thank you,
Aimin
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE
No R version was stated, but this is not the behaviour of R-patched so
you could update.
On 25/07/2013 11:01, Jim Lemon wrote:
On 07/25/2013 07:44 PM, mei_yuan wrote:
Hi,
In the R console, I have the following:
runif(10)
Error in runif(10) :
'.Random.seed' is not an integer vector but o
--
Helios de Rosario Martínez
Researcher
>>> El día 25/07/2013 a las 11:44, "mei_yuan"
escribió:
> Hi,
>
> In the R console, I have the following:
>
>> runif(10)
> Error in runif(10) :
> '.Random.seed' is not an integer vector but of type 'list'
It seems you have overwritten the defaul
On 07/25/2013 07:44 PM, mei_yuan wrote:
Hi,
In the R console, I have the following:
runif(10)
Error in runif(10) :
'.Random.seed' is not an integer vector but of type 'list'
Can someone advise me of the solution of the problem?
Mei-Yuan Chen
Hi Mei-Yuan,
.Random.seed should be a
Hi,
In the R console, I have the following:
> runif(10)
Error in runif(10) :
'.Random.seed' is not an integer vector but of type 'list'
>
Can someone advise me of the solution of the problem?
Mei-Yuan Chen
Department of Finance
NCHU, aiwan
__
Hi,
if I have a data such that,
type otu1 otu2 otu3 otu4 otu5
sampleA A1 23 4 56
sampleA A2 14 9 32
sampleB B1 36 1 45
sampleB B2 45 3 43
I want to make a heatmap that A1 and A2 are clusted in sampleA and B1 and B2
a
On 04/04/2013 01:31 AM, DONG Echo wrote:
Hello!
I am eager to learn if I only have a data about the relationship between otu
and sample, could I use the function capscale, and final make a point plot that
x-axis is CAP1 and y-axis is CAP2? Besides, what function could I use to make
the dif
Hello!
I am eager to learn if I only have a data about the relationship between otu
and sample, could I use the function capscale, and final make a point plot that
x-axis is CAP1 and y-axis is CAP2? Besides, what function could I use to make
the different rarefaction curve with different colo
x(rnorm(60, 25, 5),ncol=5), years))
library(reshape)
newdata <- (melt(mydata, id=c("years")))
boxplot(value~years, data=newdata)
#==
--- On Thu, 7/30/09, John Kane wrote:
> From: John Kane
> Subjec
ct: [R] ask help about boxplot , different list variation into the tick
> of x-axis?
> To: r-help@r-project.org
> Received: Thursday, July 30, 2009, 5:54 PM
> Hi ,everyone.
>
> I want to draw a boxplot figure, main script shown as
> below. when I
> run the command "bo
Hi ,everyone.
I want to draw a boxplot figure, main script shown as below. when I
run the command "boxplot(bjavee~yearname)",it is wrong with the error
information " model.frame.default(formula = bjavee ~ yearname) :
variation 'bjavee' list is wrong".
I want to add the yearname as the x-axis t
15 matches
Mail list logo