Displaying 20 results from an estimated 2000 matches similar to: "latex code in R -> convert to pdf"
2010 Dec 07
2
tableGrob and properties of a cell
Hello there,
could you please help to modify gpar() properties of a cell inside
tableGrob() output.
In the following example I want to have different color for one out of 4 cells
require(gridExtra)
z<-matrix(1:4,2,2)
grid.draw(tableGrob(z))
The only way I found for now how to do it is to do something like this
downViewport(current.vpTree()$children[[1]]$children[[6]]$name)
2009 Aug 17
1
help simplifying complex graphic arguments to a function
I'm working on a package to produce graphic displays of 2- and 3-way tables
and need some help/advice on how to simplify the specification of a complex
argument that gives the drawing details for each cell of the table.
Prototypes of two functions, 'tableplot' and 'cellgram' are given below.
The essential idea is that for a given table ('values'), the cells can be
be
2010 Apr 07
1
ggplot2, density barplot and geom_point layer
Hi,
Please consider the example below. How can I manage to overlay the points
the way I want in the second case?
Thanks, Joh
library(ggplot2)
# Modify data to match "real" case
myDiamonds <- diamonds
myDiamonds[["clarity"]] <- as.character(myDiamonds[["clarity"]])
myDiamonds[myDiamonds[["clarity"]]=="I1","clarity"] <- 1
2009 Aug 17
1
Display the character variables in a dataset in R
Hi everyone,
After reading the external file into R it will become a R dataset. Now my
querry is i want to dispaly only character variables from that dataset.
please help me in this aspect. if possible send me the code. it will be very
helpful for us.
Thank you in Advance.
--
View this message in context:
2009 Sep 21
3
xtable - print - suppress output
hi,
I use xtable to convert data.frames to html tables.
But when I use the print-command I always get the whole output printed
even if I just want to save the html table into a variable;
table <- print(xtable(CERAT), type="html")
How can I suppress that output is printed?
thanks!
[[alternative HTML version deleted]]
2012 Aug 13
2
R table as integrable object for large Latex Documents - avoiding SWeave
Hi, I am wondering whether some of you have a pointer to an alternative.
I am currently writing my thesis in Latex (several documents), well grown
over time, I am sure many of you are familiar with the situation. Likewise I
am doing the quantitative analysis with R, and again a lot of lines of more
or less wellwritten code. The outputs are graphs (which one can wonderfully
integrate as PNG objects
2009 Dec 16
4
Creating Dummy Variables in R
Hi,
I am trying to create a set of dummy variables to use within a multiple linear regression and am unable to find the codes within the manuals.
For example i have:
Price Weight Clarity
IF VVS1 VVS2
500 8 1 0 0
1000 5.2 0 0 1
864 3 0 1 0
340
2004 Aug 18
1
Gee
I am trying to learn the gee function in R. So I try to
generate some data and use this function. I have the
following lines:
######################################## Gee
# Generating lny=10+2*Si-Si^2+eta
# eta ~ N(0,1)
# Si ~ U(0,11)
eta <- vector(mode="numeric",100)
eta <- rnorm(100)
Si <- vector(mode="numeric",100)
Si <- runif(100, min=0, max=11)
lny <-
2011 Jun 02
1
Plotting Data Table
Hi all,
So my question is pretty simple, but unfortunately I have not been able to
find a good answer after extensive google searches.
I am trying to plot an "attractive" data table in R, such as:
http://t2.gstatic.com/images?q=tbn:ANd9GcRjfTbTEUWlnb73wtUkY1mbQblWA-2EKEgvTLXGzkqUSpH4mWrk
Such data tables are easily done in Excel, but I am trying to automate the
entire process in R.
2005 Dec 02
1
Dovecot strange behaviors on Solaris
Folks -
I've been using Dovecot for some time now, but have only recently upgraded
to 1.0alpha4. I'm struggling to get my configuration right and I'm seeing
some truly bizarre issues.
My Setup: Solaris 2.8 / Thunderbird / Procmail / Dovecot 1.0alpha4
My mail setup is only for me, so Dovecot runs at an odd port and under my
userID. All my mail is in my home directory, which
2009 Sep 20
2
xtable + print (html)
hi,
I want html code via the xtable package.
I have a data.frame and tried to use the print()-function.
But I only get the data.frame printed - no html arround it.
what do I have to change?
thanks!
2010 Oct 01
3
gridExtra question
?
Hi:
I get?a couple of warnings? when trying to download gridExtra:
install.packages("gridExtra",repos=http://R-Forge.R-project.org)
?Warning: unable to access index for repository
http://R-Forge.R-project.org/bin/windows/contrib/2.10
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
? package ?gridextra? is not available
I would like to download the binary
2018 May 18
3
drc, ggplot2, and gridExtra
I have dose response data I have analyzed with the 'drc' package.
Using plot() works great. I want to arrange my plots and source
data on a single page. I think 'gridExtra' is the usual package for
this.
I could use plot() and par(mfrow=...), but then I can't put the source
data table on the page.
gridExtra provides grid.table() which makes nice graphical tables. It
2010 Aug 03
3
grid.table and expression in table body?
Hi,
Is there any way to get an expression into a data.frame, such that
"grid.table" from "gridExtra" will plot it evaluated in the table body? The
docu does it for the header, but is the body possible?
Thanks, Joh
2012 Dec 25
5
aggregate / collapse big data frame efficiently
Hi,
I need to aggregate rows of a data.frame by computing the mean for rows with the same factor-level on one factor-variable;
here is the sample code:
x <- data.frame(rep(letters,2), rnorm(52), rnorm(52), rnorm(52))
aggregate(x, list(x[,1]), mean)
Now my problem is, that the actual data-set is much bigger (120 rows and approximately 100.000 columns) ? and it takes very very long
2013 Feb 26
4
cut a vector in equal parts
Hi,
I would like to cut a vector of values in parts.
Each part should have an equal number of elements.
for example:
x <- (rnorm(500)^2)
now I want 5 vectors each with 100 elements.
The first vector should include the 100 lowest values of x and so on
(so that the fifth vector contains the 100 highest values of x).
thanks for any help!
2018 May 18
0
drc, ggplot2, and gridExtra
On Fri, 18 May 2018, Ed Siefker wrote:
> I have dose response data I have analyzed with the 'drc' package.
> Using plot() works great. I want to arrange my plots and source
> data on a single page. I think 'gridExtra' is the usual package for
> this.
>
> I could use plot() and par(mfrow=...), but then I can't put the source
> data table on the page.
>
2013 Jan 11
3
aggregate data.frame based on column class
Hi,
When using the aggregate function to aggregate a data.frame by one or more grouping variables I often have the problem, that I want the mean for some numeric variables but the unique value for factor variables.
So for example in this data-frame:
data <- data.frame(x = rnorm(10,1,2), group = c(rep(1,5), rep(2,5)), gender =c(rep('m',5), rep('f',5)))
aggregate(data,
2012 Aug 07
1
Styling gridExtra's title and left labels
Hi,
I'm using the gridExtra package to combine some graphs like in the
arrangeGrob example. Each of the graphs has a title but they appear much
larger than the overall combined plot title and left axis label. Does anyone
know how I can control the style / size of the gridExtra labels?
library(gridExtra)
library(ggplot2)
dsamp <- diamonds[sample(nrow(diamonds), 1000), ]
p1 <-
2011 Sep 09
3
split variable / create categories
Hi,
is there a function or an easy way to convert a variable with continuous values into a categorial variable (with x levels)?
here is what I mean:
I want to transform x:
x <- c(3.2, 1.5, 6.8, 6.9, 8.5, 9.6, 1.1, 0.6)
into a 'categorial'-variable with four levels so that I get:
[1] 2 2 3 3 4 4 1 1
so each element is converted into its rank- value / categorial-value
(in