[R] main title in plot; outer=TRUE (cut off)

2011-12-16 Thread AlexC
Hello, 

I'm trying to position a plot title 1 a) in the top left corner of a
graph; i've set outer=TRUE for it to be in the outer margin unfortunately
this is cut off.  Is there a way either to make it so that it is not cut off
or increase the number of margins and then place it in margin below the
outer?

Heres what I have so far
windows(width=7,height=7)
plot(data$x,data$y,ylab=ylab,xlab=xlab,cex=1.5,cex.lab=1.5,cex.axis=1.5,font.axis=3,axes=FALSE)
par(mar=c(5,4,4,2)+0.2)
title(outer=TRUE,adj=0,main = list(1 a), cex=1.1,col=black, font=2))

thank you for your help in advance



--
View this message in context: 
http://r.789695.n4.nabble.com/main-title-in-plot-outer-TRUE-cut-off-tp4204006p4204006.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] axis thickness in plot()

2011-12-07 Thread AlexC
RESOLVED
dear Peter
thank you for your quick response

naturally, I was trying lwd before using lwd.axis, the only reason i tried
lwd.axis is because lwd wasn't working yesterday.  I restarted R today and
for some reason the exact same script, with the lwd argument, that gave me
the lwd error yesterday is working

Sincerely, 

Alexandre C.



--
View this message in context: 
http://r.789695.n4.nabble.com/axis-thickness-in-plot-tp4165430p4168437.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] axis thickness in plot()

2011-12-06 Thread AlexC
Hello, 

I am trying to increase the thickness of the axis in plot() without
reverting to the use of paint programs

i see posts on that topic for the xyplot function but want to see if i can
do it with plot() because i've already setup my graph script using that

i thought i could use axis() function and specify lwd=thickness or
lwd.axis= but that does not work like it does for lwd.ticks

If anyone has an idea, sincerely

heres the script

windows(width=7,height=7)
plot(data$Winter,data$NbFirstBroods,ylab=number of breeding
pairs,xlab=winter
harshness,cex=1.5,cex.lab=1.5,cex.axis=1.5,font.axis=2,axes=FALSE)
points(data$Winter,data$NbFirstBroods,cex=1.5,col=black,pch=19)
abline(lm(data$NbFirstBroods~data$Winter),col=red,lwd=4)

i tried axis(1, lwd.axis = 3,lwd.ticks=3) for example

also when adding the y axis axis(2...) x and y axes are disconnected

Thank you for your kind help in advance, 

Alexandre 

--
View this message in context: 
http://r.789695.n4.nabble.com/axis-thickness-in-plot-tp4165430p4165430.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Correlation Matrix in R

2011-11-01 Thread AlexC
Hello, 

Thank you for your replies.  I cannot run the function rcor.test even when
having loaded package ltm.  Perhaps it has to do with the fact that I am
using the latest version of R and this package wasn't created under that
version

The function corr.test in package psych works fine.  Is there anyway to
export the results in a txt or csv file?  Since it isn't in a data frame
format it cannot simply be exported using write.table

Alexandre 

--
View this message in context: 
http://r.789695.n4.nabble.com/Correlation-Matrix-in-R-tp3938274p3962939.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Correlation Matrix in R

2011-10-26 Thread AlexC
Thank you for your quick reply and helpful advice.

Using this argument allows me to do what I needed to do

Now the only other thing I wanted to accomplish was to obtain the top half
of the matrix with p values 
and the bottom half with the correlations, to observe the significant
correlations.  I have been able to use a few functions such as rcorr, and
cor.matrix to get such information but it isn't output in a format that I
can save with the write.table function or write.clipboard

the pair function allows a graphical display of the data on the other hand
(with correlation graphics on the bottom half) and I have added an argument
which allows to view the significant p values.  But I wanted to know if I
could also do the above easily.

--
View this message in context: 
http://r.789695.n4.nabble.com/Correlation-Matrix-in-R-tp3938274p3940170.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Correlation Matrix in R

2011-10-25 Thread AlexC
Hi, 

I am currently working with a data set which contains a list of julian dates
of phenological (flowering, leaf growth etc.) 

I obtained a correlation matrix by simply using the cor function with the
dataset cor(dataset,use=complete.obs)

that gives me a correlation matrix but the correlations are somehow
different from when I run individual correlations using the cor function and
the same correlation method.  When a smaller sub data set (3 columns) is
created from the original (27 colums) this does NOT occur!

I am a little confused by this, 
If anyone knows the reason please let me know.
Otherwise I'm looking for another way to get a correlation matrix.  I do not
know how to write a loop function to do individual correlations

Thank you for your help.

--
View this message in context: 
http://r.789695.n4.nabble.com/Correlation-Matrix-in-R-tp3938274p3938274.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.