Displaying 20 results from an estimated 7000 matches similar to: "Draw curve for histogram"
2008 May 06
2
Concatenate a vector into a string, only using distinct component
I'm trying to use combine c('a','b','c','a','c') into 'a, b, c', the order
does not matter.
paste(c('a','b','c','a','c'), collapse=', ') yields 'a, b, c, a, c'.
Any idea?
--
Regards,
Anh Tran
[[alternative HTML version deleted]]
2008 Jun 24
4
Find max of a row in data frame (like Excel)
Hi,
Here's the data we have:
> rs[1:5,]
probe_id f1 f2 f3 f4 M A f
1 A_68_P20002076 2 58 0 0 1.51778114 6.344453 59
2 A_68_P20002775 22 8 15 0 0.43419304 5.488819 59
3 A_68_P20005791 43 3 0 0 0.05698666 9.830594 59
4 A_68_P20005805 11 34 0 0 1.71076835 6.624038 59
5 A_68_P20006729 16 44 0 0 0.85498261 6.044229 59
I want rs$f be the max of f1, f2, f3,
2008 May 06
2
Print table data on to a plot
Hi,
Is there away to print a short table out along side with a plot?
I'm thinking about doing a
par(mfrow = c(1,2))
Then, the plot is on one side, summary result on the other.
Is there any quick way to print out a data.frame in table format? Thanks
--
Regards,
Anh Tran
[[alternative HTML version deleted]]
2008 Jun 21
2
Scatter plot transparency
Hi all,
I'm putting a few plots together and wondering what format would be best to
export a few scatter plots to Illustrator to make a figure. I'm thinking
about overlaying some plot in Illustrator, so the export file type has to be
transparent for Illustrator (version 10).
I tried PNG and TIFF, but it does not seems to have transparency that is
recognized by Illustrator (or Photoshop for
2008 May 09
1
Rescaling a column in a matrix based on a certain rows
Hi,
Let say I have this matrix:
> mat<-matrix(cbind(rnorm(20),rnorm(20)), ncol = 2)
And I want to rescale values of column [,1] and [,2] using values from row 1
to 5, such that the values of row 1:5 should be rescale to the same
amplitude (kinda like take the z-score of population from row 1:5). column 1
and 2 are two different samples need to be compared.
I hope I made myself clear
2005 Mar 10
1
Transparent colors OR two series on one histogram
Hi,
I want to be able to plot a single histogram of a measured trait with
trait values from two conditions on the same histogram to allow easy
comparison.
I have previously done this in excel by plotting the two series on a
single bargraph having calculated frequencies in bins. You then get one
condition plotted immediately to the right of the other. I hope that
makes sense?
I don't
2009 Mar 21
1
bargraph.CI change se for sd
Hi there,
I am a beginner.
I would like to change the error bars in the bargraph.CI function from the
default (se) to (sd). The help file says
ci.fun= function(x) c(fun(x)-se(x), fun(x)+se(x))
Is there a simple way of telling the function what (x) precisely is - I
already define in in the of the bargraph.CI function and assume that is
should be able to use that information.
cheers,
Herwig
--
2009 Mar 02
1
using par funtions in bargraph.CI()
I'm trying to create a bargraph of means with standard error bars using the
function bargraph.CI (in the sciplot package). Like this:
bargraph.CI(x.factor, response,data,xlab, ylab, par(family="serif"),font=11)
However, an error message comes up when I try to use the par funtion. Does
the character font/style need to be changed in a different way for this
kind of plot? Or am I
2011 Mar 25
2
error in bargraph.CI {sciplot}
Hi to all,
Does anybody knows why this is giving an error?
data(ToothGrowth)
# Two-way design with options
bargraph.CI(dose, len, group = supp, data = ToothGrowth,
xlab = "Dose", ylab = "Growth", cex.lab = 1.5, x.leg = 1,
col = "black", angle = 45, cex.names = 1.25,
density = c(0,20), legend = TRUE)
Error in dn.call[[1]] :
2009 Apr 10
2
Problem with bargraph.CI in Sciplot package
Hi there,
I wonder if anyone can help me. I'm trying to use bargraph.CI in the Sciplot
package when there is a missing combination of the factor levels.
Unfortunately the standard errors on the plot do not appear to be correct.
Consider an analysis consisting of two factors A and B. When all factor
level combinations are present all appears fine:
library(sciplot)
#all data
2009 Nov 03
2
bargraph.ci - CI and color question.
Hello,
When using bargraph.CI in package sciplot can the bars for each group
be different colors? How do I select the color for each group?
When I use this instead of the default (SD vs SE):
bargraph.CI(x.factor = dose, response = len, data = ToothGrowth,
ci.fun= function(x) c(mean(x)-sd(x), mean(x) + sd(x)) )
Am I getting 95% CI bars?
Thank you kindly,
Michael Just
2008 May 12
5
Format integer
Hi,
What's one way to convert an integer to a string with preceding 0's?
such that
'13' becomes '00000000013'
to be put into a string
I've tried formatC, but they removes all the zeros and replace it with
blanks
Thanks
--
Regards,
Anh Tran
[[alternative HTML version deleted]]
2008 Jun 16
4
Superimposing Line over Histogram in Density Plot
Hi,
Currently I have a density plot generated with this
snippet.
Is there a way I can add a line curve on top of it?
I mean in one figure
__BEGIN__
myhist <- hist(x
col="blue",
main = "Density Plot",
xlab = "Exp Level",
)
__END__
- Gundala Viswanath
Jakarta - Indonesia
2008 Jul 05
3
trying to superimpose a line plot onto a histogram
Hello,
I'm trying to superimpose a line plot onto a histogram but I'm not having
any luck. I've attached the dataset. What I did was:
> hist(data,freq=F)
Now I'm trying to superimpose the following points with a line connecting
them onto the histogram:
x y
100 0.535665393824959
200 0.212744329736556
300 0.0844933242968584
400 0.0335572838043417
500
2010 Mar 14
6
barplot with a probability density curve
Dear all,
I am making a barplot as following:
barplot(c(1,2,3,5,2,3,1),names.arg=c("100","200","300","400","500","600","700"),xlab="diameter",ylab="flow",main="some title",space=0.1)
I am also trying to add a probability density curve, however using
lines(density(c(1,2,3,5,2,3,1))) does not give
2010 Apr 26
1
mvpart : Printing response values at terminal nodes
I have created a multivariate regression tree using mvpart, with 3-4
responses. Though the plot shows bargraphs for each response, I would
like to have the VALUES of the responses
printed or indicated (via a scale or something) alongside the bargraph.
Is this possible ??
Thanks,
Manjunath
[[alternative HTML version deleted]]
2008 Aug 02
2
Multiple R console for OS X?
Hi gang,
I always open more than 1 R console in Windows. I can't figure out a way to
do this with OS X yet. I need that to utilize the duo core on my desktop.
How would I do that?
--
Regards,
Anh Tran
[[alternative HTML version deleted]]
2008 May 18
3
Opening more than 1 R console in Windows
Hi all,
I recently found out that R does not utilize fully the Duo Core capability
when you only run one instance of R.
I did some number crunching today and it seems that if I only open 1 R
console, it uses 50% of my CPU (either 50-50 or 100-0 on 2 cores).
Then, I open the second instance and divide the work into two parts, and run
them parallelly, they seems to utilize 100% of my CPU.
So, my
2011 Feb 17
2
A very basic line-plot question
Hi All
I have data like this
tom randy mike dan doug
height 150 152 155 134 141
I am trying to create a line plot, with names on X-axis and height measure
on Y. how can i get it through R.
I could get several versions which are close (dotchart, bargraph), but not
quite the same thing.
I am looking for something like
2011 Aug 02
3
3D Bar Graphs in ggplot2?
Does anyone know how to create a 3D Bargraph using ggplot2/qplot. I don't
mean 3D as in x,y,z coordinates. Just a 2D bar graph with a 3D shaped bard.
See attached excel file for an example.
Before anyone asks I know that 3D looking bars don't add anything except
"prettiness".
http://r.789695.n4.nabble.com/file/n3713305/Example.xlsx Example.xlsx
--
View this message in