Displaying 20 results from an estimated 60000 matches similar to: "Problems in plot"
2003 Apr 07
3
New window for plot()
Hi,
Can anybody tell me how to open new a new window for plot()? Thanks.
Minghua
2009 Jan 28
2
help with plot layout
It takes a lot of sweat to generate a composite plot with R ... sigh.
I though I was almost done when I met the umpteenth hurdle. I cannot place a nice title on the 2nd plot (raw signal)
on the layout. I do not have control on where either the "main" option of "plot" function, or "title", place the text
string which keeps dysplaying chopped from above. I also tried
2003 Sep 16
3
Question in Using sink function
Could anyone please explain to me why the following writes nothing into
"all.Rout"
file? If the "for" loop is removed, t.test output can be written into
"all.out".
Thanks in advance.
Minghua Yao
......
zz <- file("all.Rout", open="wt")
sink(zz)
for(i in 1:n)
{
Cy3<-X[,2*i-1];
Cy5<-X[,2*i];
t.test(Cy3, Cy5)
2003 Apr 10
3
A Question on lowess() function
Hi, all,
I want to use lowess(x, y) where x and y are vectors of length of 4000+. In
fact, x and y are log of some vectors. So, some of the elements are NaN.
lowess() can not take away those elements then do the fitting. It will give
the error message and do nothing.
1. Can anybody tell me how to get rid of those NaN's and use lowess()?
2. How to get the LOWESS fitting values for any
2003 Sep 26
3
Std. errors of intercept and slope
Dear all,
I have the following output generated by linear regression. Since there is
only one regression intercept and one slope for one set of data, what is the
meaning of std. error for intercept and that of slope? Thanks in advance.
Sincerely,
Minghua
> data(thuesen)
> attach(thuesen)
> lm(short.velocity~blood.glucose)
Call:
lm(formula = short.velocity ~ blood.glucose)
2009 Sep 11
3
Barplot+Table
I am trying to automate a report that my company does every couple of years
for the state of Maine. In the past we have used SPSS to run the data and then
used complicated Excel template to make the tables/graphics which we then
imported into Word. Since there are 256 tables/graphics for this report, this
work flow is a little painful. I would like to automate the process and I think
I can do
2004 Sep 30
2
pointsize in png graphics
Dear all,
I'm trying to produce 2 png files, one consisting of an image plot and a
color-table (also an image plot) and the other one consisting of 4 image
plots and a color table. I'd like the color table to be exactly the same.
The way I proceded is the following:
for one plot and the color-table
png(file = png.file, width = 650, height = 800, pointsize = 16)
layout(matrix(c(1, 2),
2004 Aug 25
5
How to Arrange character vector in alphabetic order
Hi,
Is there any function that can arrange a character in alphabetic order? Thanks for answer
-MY
[[alternative HTML version deleted]]
2003 Aug 06
3
How to copy and paste a R plot onto Word (or Power Point)
All,
Anybody can tell how to export a R plot onto Word (or Power Point)?
Many thanks in advance.
-MY
2003 Jun 27
2
NA points in loess function
Gurus,
I used
predict(loess(Y~X));
where Y and X are of the same length. But there are same NA's in both Y and
X. Those NA's are in the same locations in Y and X. The following is the
error messageI got:
Error in "[<-"(*tmp*, , i, value = predict(loess(Y~X))) :
number of items to replace is not a multiple of replacement length
If I replaced the NA's with a
2006 Oct 08
2
Size problem with two dotcharts side by side
Dear all,
I'm trying to produce two dotcharts side-by-side within a Sweave
document. When I'm compiling this example:
\documentclass{article}
\begin{document}
<<fig=T,width=8,height=4>>=
par(mfrow = c(1, 2), cex = 0.7)
for(i in 1:2) dotchart(1:10)
@
<<fig=T,width=8,height=4>>=
par(mfrow = c(1, 2), cex = 0.7)
for(i in 1:2) hist(1:10)
@
2004 Feb 11
7
large fonts on plots
Hi all,
I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in
labels and titles etc.
I seem to be unable to figure out how to do it. The problem is that the
titles of the plots are simply unreadable when I insert them into my LaTeX
text, since they are relatively small compared to the entire plot.
I am sure it is pretty simple, can anybody give me a hint ?
Please reply
2004 Aug 20
3
How generate "A01", "A02", ..., "A99"?
Hi,
Anyone can tell me how to generate "A01", "A02", ..., "A99"?
paste("A", 1:99, sep="") generates "A1", "A2",..., "A99". This is not what I want.
Thanks for the help.
-MY
[[alternative HTML version deleted]]
2003 Apr 21
2
How to assigen column of matrix
Hi,
A simple question.
I want to assign values to columns (or rows) of a matrix.
It seems that
AA[,i]<-A; # A is a vector or array;
doesn't work.
How can I accomplish that?
Thanks alot.
-MY
2008 Aug 02
3
Bubble plots
Is there a way to create a 'bubble plot' in R?
For example, if we define the following data frame containing the level of y observed for 5 patients at three time points:
time<-c(rep('time 1',5),rep('time 2',5),rep('time 3',5))
2004 May 20
2
Get Slot from a Class
Hello, everyone,
I don't quite understand the following message:
> TTT <- t.test(1:10, y=c(7:20))
> class(TTT)
[1] "htest"
> TTT@p.value
Error: Trying to get slot "p.value" from an object whose class ("htest") is not defined
> TTT$p.value
[1] 1.855282e-05
Why the message says the class of TTT is not defined while class(TTT) gets
2010 Apr 20
1
multiple plots problem
hello,
i try to plot 3 graphs which have the same x.axis underneath each other. i'd
like the plots to be aligned without margings between the boxes and draw a
single x axis beneath the lowest plot.
i managed to get the alignment by setting par(mar), but the middle box is
stretched
and i cant't figure out how to get around this. par(pin) was my guess, but
this doesn't do the job
2013 Sep 13
3
Problema con el tamaño de las letras en R en gráficos multiples
Hola buenas,
Actualmente me hayo haciendo unas gráficas que han de tener un tamaño de
letra determinado. Para ello empleo los parametros ps de las funciones
x11() y en par().
Mientras hago gráficas de uno y gráficas de dos plots todo va bien. Pego
las gráficas en power point y veo que las gráficas son del tamaño
recomendado (pego una caja de texto y compruebo que todo es correcto de
manera
2002 Oct 08
2
plotting questions
I'm having some issues with using chron() objects for the x-axis in plots.
#########
plot(chron(c("07/01/01","08/01/02")),c(100,200),cex.axis=5)
#########
It doesn't seem to scale up the cex of the x-axis. Is there any way to scale
these x-axis labels up?
Also, I'm not sure but I don't believe I have even seen this behavior.
#############
2012 Jan 29
1
height of plots
Hello R gurus,
I have to create 12 plots, I have been using the following script, which
leaves a large white space between two plot. I would appreciate if someone
can suggest an alternative to reduce the white space.
par(mar=c(3,3,.5,.5))
split.screen(c(6,2)) # split display into two screens
for (i in 1:12)
{
if (i<11)
{
screen(i)
plot(1:10,xaxt='n', xlab='',