search for: textplot

Displaying 20 results from an estimated 54 matches for "textplot".

2008 Jun 11
1
Problem when combining dotplot() and textplot() using grid
Hi everyone. I want to solve the following problem. I have a data.frame and I create a dotplot using lattice. Then I want to use the grid-package to create a combined graphic which contains the dotplot as well as a textplot() (using package gplots) of the data.frame next to the dotplot. Example code: library(lattice) library(grid) library(gplots) xx <- data.frame(f=factor(rep(1:5, each=5)), gr= rep(c("gr1", "gr2", "gr3", "gr4", "gr5"), 5), val=rnorm(25)) grid.newp...
2011 Oct 25
1
textplot in layout
...2 , 2003 , 2004) rate <- c(9.34 , 8.50 , 7.62 , 6.93 , 6.60) op <- par(no.readonly = TRUE) on.exit(par(op)) layout(matrix(c(1,2), 2, 1, byrow = TRUE),heights=c(8,1)) par(mar=c(5,3,3,3)) plot(year,rate,main='main',sub='sub') library(gplots) par(mar=c(0,0,0,0),new=F) textplot('test',valign='top',cex=1) box() Note: I'd rather solve it with textplot. If not, my next stop is grid.text(). Also, the text I am plotting with textplot is much longer so a multiple line text plot would solve my next issue (of which I have not looked into yet). Lastly, layout...
2010 Sep 27
1
textplot
Hi all, Please can you help me to add text to a plot. I would like 5 graphical plots and 1 text plot. I use par(mfrow=c(2,3)) then textplot() I would like to add various pieces of information to the text plot, i.e. some individual values, a table of statistics, some sentences. Is there any easy way of doing this or am I forced to construct a very complicated dataframe? Is this even possible? Examples would be appreciated... Thanks......
2007 Oct 31
1
textplot() in gplots causes problems (0x9)
Hello, I am using textplot function in gplots package to put some model output inside a PDF file, but it does not seem to work properly with PDF. I am doing follwing: pdf(file="C:/...", paper="a4", width=8, height=12) .model <- lm(.model.formula, data=database) textplot(capture.output(summary(.model))...
2008 Jan 22
1
Adding a table to a lattice plot
Hi, Is there an analog function of textplot in the lattice package? I need to add a data frame to a lattice plot. I work in a Windows environment and I am using R v 2.6.1 Thank you, Judith ____________________________________________________________________________________ Be a better friend, newshound, and
2010 Oct 03
3
Include externally generated pdf in output (without Sweave)
Dear useRs, I generated a simple image-based report using the sequence: pdf(....) plot(.....) textplot( for short texts, from gplots) dev.off() Is there an easy way to include an single pdf-page from an external file (not R generated). Note: For final reports, I know how to use Sweave, but I am looking for a quick solution with less overhead. Something like textplot() for pdf. Dieter
2007 Oct 08
1
How put description under the graph (using different lines)
Hello, I need to use barplot' graphs, but under the graph I need to put different things. The structure of this graph must be: MY GRAPH ------------------------------------------------------ description 1 ----------------------- ------------------------- description2 description3 where: -description 1, description 2 and description 3 are
2010 Sep 13
2
proportion
...inking maybe i had another library loaded from a previous process and that it wasnt listed in my script and now isnt being loaded. So question is what library do i need to load or what other updates or changes have been made that now R cant find proportion? Probably useless with other code/data: textplot(paste(names(TrkSUV.Ag[[zp]]),proportion(TrkSUV.Ag[[zp]])), halign="center", valign="center",cex=1) -- View this message in context: http://r.789695.n4.nabble.com/proportion-tp2538185p2538185.html Sent from the R help mailing list archive at Nabble.com.
2010 Sep 28
1
confirming behavior of "by"
Hi, I'm using "by" to summarize by multiple groups, and want to extract the returned into a pretty dataframe. I'm trying to find a simple way to name the rows of the data frame. I'd like it to be something like index1.val1.index2.val2 where the index1 and index2 are the names of the indices and the val1 & val2 are names of possible values of the index. (the
2004 Mar 21
4
writing text on graphics' window
Hi, Does anyone know of a method for writing text to the graphics window, where there is *no* plot? Basically, I have developed a 'significance test' and I would like the output on the graphics window to say something about the input parameters and the stats of the significance test. Any help would be appreciated. Cheers, Sam.
2007 Nov 02
0
gplots 2.5.0
...ons, including several enhanced versions of base R functions. Provided functions include: balloonplot, bandplot, barplot2, boxplot.n, colorpanel, heatmap.2, hist2d, lowess, ooplot, overplot, plot.lm2, plotCI, plotmeans, qqnorm.aov, residplot, rich.color, sinkplot, smartlegend, space, textplot, wapply Changes in 2.5.0 ----------------------- New Features: - textplot() now converts tab characters to spaces before processing to avoid problems with computing height and width of text that includes tabs. - Add col2rgb() function to convert color names to rgb hex codes Bug Fixes:...
2007 Nov 02
0
gplots 2.5.0
...ons, including several enhanced versions of base R functions. Provided functions include: balloonplot, bandplot, barplot2, boxplot.n, colorpanel, heatmap.2, hist2d, lowess, ooplot, overplot, plot.lm2, plotCI, plotmeans, qqnorm.aov, residplot, rich.color, sinkplot, smartlegend, space, textplot, wapply Changes in 2.5.0 ----------------------- New Features: - textplot() now converts tab characters to spaces before processing to avoid problems with computing height and width of text that includes tabs. - Add col2rgb() function to convert color names to rgb hex codes Bug Fixes:...
2011 Apr 05
1
Saving console and graph output to same file
Hello All, How do I save the output of the R console and the graphic output to the same PDF file and append these to each other? I need to have a frequency table and a corresponding graph, one below the other in a file. I have tried with sending the cross table to the graph window using 'textplot' and then saving the graphic output. However, the table does not look nice in the graph output. Is there any way the output from the console can be saved in a file and then the output from the graph window be appended to the same file? Thanks Nikhil [[alternative HTML version deleted]]
2011 Aug 16
1
Can you send "side effect" text into a variable?
Dear folks -- There are a number of functions -- I am thinking of str() as an example -- that produce text as a side-effect, rather then returning it. Is there any way to send the text produced by such functions into a character variable? Any suggestions would be greatly appreciated. andrewH -- View this message in context:
2011 Dec 02
0
Save Venn-diagram (Vennerable) together with table and plot in single pdf page
...nn(x,doWeights = TRUE) tabletext<-paste("Variable: ",letters[1:8],sep="") pdf("path/plot_test.pdf", fillOddEven=TRUE,paper="a4", onefile=TRUE,width=7,height=10) layout(matrix(c(1,2,2,1,2,2,3,3,3), 3, 3, byrow = TRUE),heights=c(1,1,2)) par(mar=c(6,2,2,4)) textplot(tabletext,valign="top",halign="left",cex=2) plot(rnorm(100),main="Random 1") plot(rnorm(100),col="red",main="Random2") dev.off() And here the example of the pdf with where I try to replace the "Random1" point plot with a Venn diagram (w...
2005 Jan 10
4
Graphical table in R
I would like R to produce some tabulated data in a graphical output. When I say tabulated data, what I mean is a table with rows and columns. This would be useful when reading in a big file, performing some analysis on it, and then wanting to display the results as a table. Something like plot(x,...) where x is a matrix For example, the result could look (approximatly) like...
2011 Oct 22
7
"Plotting" text?
I noticed that the text() command adds text to a plot. Is there a way to either make the plot blank or add text to a "blank sheet". I would like to "plot" a page that contains just text, no plot lines, labels, etc. Suggestions? Kevin [[alternative HTML version deleted]]
2014 Sep 03
2
timings for examples in R CMD check
...s, I get differences reported for every example by the (spurious?) insertion of timings by R CMD check. e.g. 8169a8549,8550 > > base::assign(".dptime", (proc.time() - get(".ptime", pos = "CheckExEnv")), pos = "CheckExEnv") > > base::cat("textplot", base::get(".format_ptime", pos = 'CheckExEnv')(get(".dptime", pos = "CheckExEnv")), "\n", file=base::get(".ExTimings", pos = 'CheckExEnv'), append=TRUE, sep="\t") 8175a8557 Is this expected? It is certainly not...
2004 Jul 13
3
plotting a table together with graphs
Check out textplot in the gregmisc package ... Federico Calboli <f.calboli@ucl.ac.uk> Sent by: r-help-bounces@stat.math.ethz.ch 07/13/2004 12:06 PM Please respond to f.calboli To: r-help <r-help@stat.math.ethz.ch> cc: Subject: [R] plotting a table together with...
2012 Jul 27
1
Working with quantmod chartSeries and plot.zoo
...I want to accomplish is create one pdf sheet with three graphs and one correlation table. Attached is an example I created which is very similar to what I want to do but there are few things I would like to change. I'm using chartSeries in quantmod for the graphs and for the table I'm using textplot. Few questions: 1) Is it possible to remove the date in the upper right corner of the graphs? 2) Instead of the text Last xxxx (the green series) I would like to get the name of the series itself, e.g. Stock 1, is that doable? 3) How can I give the axes names, e.g. Return, Date? 4) In the Cumulat...