Displaying 20 results from an estimated 21 matches for "testplots".
Did you mean:
testplot
2005 Jun 04
2
locator() via tcltk
Hello,
I'm trying to write a function using tcltk to interactively modify a plot
and gather locator() data. I've read Peter's articles in Rnews, the help
pages in tcltk, http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/,
plus a post in R-help sometime ago, but haven't found a solution.
The idea goes something like this:
require(tcltk)
testplot <- function() {
getcoords
2009 Nov 20
1
How to concatenate expressions
Dear R-users,
I am developing a plotting function, which receives expressions and
character/numerical vectors as part of the many input arguments and
which tries to concatenate them before displaying the result to the
plot. I currently cannot find a way to make this concatenation works. I
have read several posts in the list that solved this problem by pasting
the different elements together
2009 Jan 27
0
How do you specify font family in png output; png cross-platform issues
For teaching purposes, I prepared a little R program. I want to give
this to students who can run it and dump out many formats and then
compare their use in LaTeX documents. I do not have too much trouble
with xfig or postscript format, but I've really run into a roadblock
where png files are concerned.
My original problem was that the png device does not accept a family option.
How can I
2013 Feb 20
0
Problems with line types in plots saved as PDF files
Ian
No differences with Adobe X with the following
windows(6,6)
#pdf(file = "TestPlot.pdf", 6, 6)
#{
plot(b, l, type = "l", ylim = c(y.min, y.max), lwd = 2, xlab =
expression(beta), ylab = "", col = "green", yaxt = "n", xaxt = "n")
points(b, p, type = "l", lty = "dotted", lwd = 2, col = "red")
points(b,
2009 Dec 11
1
ggplot: Problem with legend background
Dear R-users,
I am preparing graphs for an upcoming article using the different functions
of the ggplot2 package and I've been having problems with the legend
background. It doesn't seem to scale when the text size is increased. Here's
the mandatory reproducible example:
library(ggplot2)
repFrame <- data.frame(A= 1:10, B= rnorm(1:10), groupNum = rep(c("First
group",
2009 Jul 02
2
Computer Modern
I am trying to use computer modern fonts in postscript files for a latex
document. Ultimately I want to automate this through sweave. I've read the
documentation ans have tried the following code to use lattice to produce a
graph using computer modern:
library(lattice)
library(grid)
testPlot=(
xyplot(seq(1:10) ~ seq(1:10),
main="one to ten",
2011 Jul 11
4
Save generic plot to file (before rendering to device)
I am looking for a way to save a plot (graphics contents) to a file after the
plot has been calculated but before it has been rendered. More specifically,
assume that I made a plot that took a very long time to produce, I would
like to save this plot to a generic file that I can later, on a different
machine, render to either PDF, PNG, SVG using the usual R graphics devices,
without recalculating
2011 Jul 11
4
Save generic plot to file (before rendering to device)
I am looking for a way to save a plot (graphics contents) to a file after the
plot has been calculated but before it has been rendered. More specifically,
assume that I made a plot that took a very long time to produce, I would
like to save this plot to a generic file that I can later, on a different
machine, render to either PDF, PNG, SVG using the usual R graphics devices,
without recalculating
2011 Nov 03
0
Back-transforming in lme
Hello I am analysing aboveground biomass data from revegetation testplots which I constructed in a split-plot design using the function lme. For the experiment, the three factors are amelioration (2 levels), fertilizer (2 levels) and treatment (7 levels). Each testplot (block) has a singlereplicate of each treatment (total of 8 testplots). The blocks were constructed of...
2017 Oct 12
1
Recurrence plots in R using different colours
Hello,
I am an absolutely beginner with regards to R, so forgive me for my
potentially very stupid questions.
I have been attempting to create recurrence plots using R. The data I am
using is based on a mutually exclusive and exhaustive coding scheme with
over 40 individual codes which can be assigned to 6 higher order categories.
When I carry out the usual rqa command, my plot is pretty much
2002 Feb 14
2
RFC: "R::Wrapper" perl module
If I actually finished writing this module, would any of you use it?
Would you wish it did something else/different than what's described
below? Any comments or suggestions on its proposed usage, intent, or
syntax are welcome! (An alternative, better name would also be
appreciated) -Aaron
NAME
R::Wrapper - Wrapper around the RS-Perl R module
SYNOPSIS
#!/usr/bin/perl -w
2007 Jun 28
1
Changing graphics height when using grid and lattice
...pct = runif(40, 1, 30)
)
# RR data
testData2 <- data.frame(
strata = rep(c("CHF : Yes", "CHF : No"), each = 10),
ae = paste("Adverse Event", 1:10),
rr = runif(20, 0.5, 5)
)
testData2$lower = testData2$rr / 2
testData2$upper = testData2$rr * 2
# Combined plot
testPlots <- function(relativeWidth)
{
plot1<- dotplot(
ae ~ pct | strata,
groups = trt,
data = testData,
layout = c(1, 2),
xlab = "Percent",
auto.key = list(space = "top", columns = 2)
)
plot2 <- Dotplot(
ae ~ Cbind(rr, log10(lower), log10(upper)) | strata,
data =...
2008 Jan 01
2
Alignment and Labeling of a color key in a xyplot?
Happy New Year to all R users!
I have two short questions concerning a xyplot with a color key:
1) How do I properly place (align) the color key beside the xyplot?
As you can see from the code listed below, the placement of the color
key is not correct. I would like the upper and lower end point of the
color key to be perfectly aligned with the upper and lower line of
the xyplot. Adjusting
2013 Feb 12
8
Help with functions as arguments
Hi,
I am trying to write a function which defines some arguments, then uses those arguments as arguments of other function calls. It's a bit tricky to explain, so a simple example will have to suffice. I imagine this has a simple solution, but perusing through environments and other help lists has not helped. Suppose I have two functions:
f1 = function(a)
{
b = a + 1
b
}
f2 =
2006 Feb 10
1
Question on big JPG plots in function warpping format
Hello:
I have problems generating big JPG plots in functions. the following code runs
fine in the script:
#### runs fine in script, generate 40k "test1.jpg" in the given directory
plotPlatesAlong <- c(1:5)
plotDirPath <- paste(dataPath, "OutputPlots\\", sep="")
filename <- paste(plotDirPath,"test1.jpg", sep="")
jpeg(file=filename)
2010 Aug 10
1
Sweave with dev.new()
Dear list.
I am preparing a R package, and the last step is to write a package
vignette using Sweave. However, I am experiencing some trouble when trying
to include plots in my Sweave document. That is, in my package I have made
some plotting functions in which I start by calling 'new.dev()' to start a
graphics device of a certain width and height, and then proceed with
plot(). These
2016 Apr 25
0
ylim in barplot()
If you are using a Windows system, you can Export the plot from RStudio and save it as a metafile without using package devEMF and it will crop the bars with xpd=FALSE. When I used devEMF on a Windows machine, the bars were not cropped with barplot() as you indicated, but when I switched to plotrix::barp() they were cropped. The arguments are a bit different, but I did not need xpd=FALSE:
2016 Apr 26
1
ylim in barplot()
Thank you David,
That's a nice workaround using plotrix::barp(), but that doesn't explain
why ylim doesn't work as intended (or at least, as I expect it to work),
or why xpd has no influence when using devEMF::emf()...
The problem with saving directly in RStudio is that it requires to
manually save the plot, and this becomes troublesome when there are a
lot of plot commands in a
2016 Apr 25
2
ylim in barplot()
Dear useRs,
I'm having troubles with using ylim in barplot(): even though I reduce
the y-scale using ylim, the bars still extend down to 0into the x-labels.
The sample data is below, and here is the code.
#This works fine but I would like to plot only from 50 to 70:
barplot(t(mydata), beside=TRUE, col=c("orange", "green", "yellow",
"purple"),
2001 Nov 21
0
save results from cron job
hello,
i would like program in future
more complex analysis, but i
have problems find a good way to save
the result's (i.e. correlation's, anova, clusterSolutions)
in a textfile.....
i attempt several things i.e. "save" but when i use it and save it
to my htdocs folder for visualize in WWW it works , but i can't use it
in a html-formular (open the file)) , beacuse R