lp-boun...@r-project.org] On Behalf Of Preetam Pal
Sent: Tuesday, 11 October 2016 19:14
To: r-help@r-project.org
Subject: [R] Output formatting in PDF
Hi,
Can you please help me with the following output formatting:
I am planning to include 2 plots and some general description in a one-page
PDF
You may be able to do everything you need with the cowplot package.
On Tue, Oct 11, 2016 at 4:26 AM, Preetam Pal wrote:
> Hey Enrico,
> LaTex is not possible actually.
>
> On Tue, Oct 11, 2016 at 2:29 PM, Enrico Schumann
> wrote:
>
> > On Tue, 11 Oct 2016, Preetam Pal writes:
> >
> > > Hi,
> >
Hey Enrico,
LaTex is not possible actually.
On Tue, Oct 11, 2016 at 2:29 PM, Enrico Schumann
wrote:
> On Tue, 11 Oct 2016, Preetam Pal writes:
>
> > Hi,
> >
> > Can you please help me with the following output formatting:
> > I am planning to include 2 plots and some general description in a
>
Or package "knitr". Note that knitr can be used with LaTeX or markdown syntax,
but from your description the former would be advised.
--
Sent from my phone. Please excuse my brevity.
On October 11, 2016 1:59:59 AM PDT, Enrico Schumann
wrote:
>On Tue, 11 Oct 2016, Preetam Pal writes:
>
>> Hi,
On Tue, 11 Oct 2016, Preetam Pal writes:
> Hi,
>
> Can you please help me with the following output formatting:
> I am planning to include 2 plots and some general description in a one-page
> PDF document, such that
>
>- I'll leave some appropriate margin on the PDF- say, 1.5 inches
>top,
Hi,
Can you please help me with the following output formatting:
I am planning to include 2 plots and some general description in a one-page
PDF document, such that
- I'll leave some appropriate margin on the PDF- say, 1.5 inches
top,right, bottom and left (will decide based on overall appe
Hi Manish,
Try
> cat(sqrt(2),"\n")
1.414214
See ?cat for more information.
HTH,
Jorge.-
On Mon, Mar 19, 2012 at 10:42 PM, Manish Gupta <> wrote:
> How to avoid [1] in output?
>
> print(sqrt(2),row.names=NULL)
> *[1] *1.414214
>
> How to avoid it?
>
> print(sqrt(2),row.names=NULL)
> 1.414214
How to avoid [1] in output?
print(sqrt(2),row.names=NULL)
*[1] *1.414214
How to avoid it?
print(sqrt(2),row.names=NULL)
1.414214
Regards
--
View this message in context:
http://r.789695.n4.nabble.com/Output-formatting-in-Latex-and-R-tp4483631p4487480.html
Sent from the R help mailing list a
Use the eol="\n\n" option. The records should have a 2 line space.
--
View this message in context:
http://r.789695.n4.nabble.com/Output-formatting-in-Latex-and-R-tp4483631p4485457.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help
Hi,
I am using follosing code and getting the below output.
<>=
infile<-read.table("/home/manish/Desktop/test.txt",sep="\t",header=TRUE)
Col3 <- unique(infile[,3])
LCol3 <- length(Col3)
for (i in 1:LCol3) {
print(paste("Disease Risk:", Col3[i]),row.names=FALSE,
col.names=FALSE,quote=FALSE)
print
Great it works! But how can i put space or tab between two records?
--
View this message in context:
http://r.789695.n4.nabble.com/Output-formatting-in-Latex-and-R-tp4483631p4483921.html
Sent from the R help mailing list archive at Nabble.com.
__
R-hel
Col3 <- unique(Msg17$V3)
LCol3 <- length(Col3)
for (i in 1:LCol3) {
print(paste("Column", Col3[i]))
write.table(Msg17[Msg17$V3==Col3[i],-3], row.names=F, col.names=F,quote=F)
# If you R implementation does not accept 'F', use 'FALSE'
}
--
View this message in context:
http://r.789695.n4.nabbl
I am working on Latex and R and using following code.
<>=
infile<-read.table("test.txt",sep="\t")
Col3 <- unique(infile[,3])
LCol3 <- length(Col3)
for (i in 1:LCol3) {
print(paste("Column", Col3[i]))
print(infile[infile[,3]==Col3[i],-3])
}
@
I am getting following output.
1] "Column C" V1 V2
Hi Kingsford - this is exactly what I am looking for...
Many thanks!!
Kingsford Jones wrote:
>
> I'm guessing you processed a data frame with the 'by' function.
> Rather than restructuring the by output, try using a different
> function on your data frame. For example
>
>> #install.packages(d
I'm guessing you processed a data frame with the 'by' function.
Rather than restructuring the by output, try using a different
function on your data frame. For example
> #install.packages(doBy)
> summaryBy(breaks ~ tension + wool, data=warpbreaks, FUN=sum)
tension wool breaks.sum
1 LA
Hi R users,
I have an R object with the following attributes:
> str(sales.bykey1)
'by' int [1:3, 1:2, 1:52] 268 79 118 359 87 147 453 130 81 483 ...
- attr(*, "dimnames")=List of 3
..$ GROUP: chr [1:3] "III" "II" "I"
..$ year : chr [1:2] "2006" "2007"
..$ week : chr [
16 matches
Mail list logo