Displaying 7 results from an estimated 7 matches for "my_plot".
2011 Dec 23
1
Debugging namespace problems
...thout any ns related errors on both the
importee and the importer.
I've attached a reproducible example - if you install the development
version of ggplot2 (e.g. with devtools::install_github("ggplot2") the
attached package fails R CMD check with:
> ### ** Examples
>
> plot(my_plot())
Error in structure(list(data = data, layers = list(), scales = Scales$new(), :
attempt to apply non-function
Calls: plot ... my_plot -> ggplot -> ggplot.data.frame -> structure
Execution halted
Error: Command failed (1)
Hadley
--
Assistant Professor / Dobelman Family Junior Chair...
2010 Jul 16
8
save plot
I made a plot, but after I made a second plot, the previous plot was
gone. How can I save all the plots in a file (I do not manually copy
and paste them one by one)?
Thanks.
Linda
2011 Mar 03
2
lattice custom axis function -- right side margins
...ty_sigmasq[pretty_sigmasq >= 0]
pretty_sigma <- pretty(sigsq2sig(pos_sigmasq))
panel.axis(side = side, outside = TRUE,
at = sig2sigsq(pretty_sigma),
labels = pretty_sigma)
},
axis.default(side = side, ...))
}
my_plot <- function(best.fits, ...) {
y.main.label <- expression(sill~group("[", group("(", mu*mol~s^-1~m^-2 ,")")^2, "]"))
#plot the parameter values, one per year
plt <- xyplot(sigmasq~interaction(var, par_set),
data=best.fits,...
2010 Jun 30
1
Why the variation when creating .pdf file output for my plots?
...xample)
Method 2:
> dev2bitmap(file="expression.density.plotb.pdf", type = "pdfwrite",
> method = "pdf")
> dev.off()
-yields a .pdf file of 300kb (same plot example) indistinguiashble (on
the screen atleast) from method 1.
Method 3:
> pdf(file="my_plot.pdf", paper="a4")
> dev.off()
-yields a .pdf file of 1kb (same plot example) and returns the following
error when attempting to open with Adobe acrobat:
"There was an error opening this document. This file cannot be opened
because it has no pages."
SessionInfo()
R...
2005 Dec 23
1
how to specify dev.print target by a variable?
I want to do the following:
DEVw=500
DEVh=350
fname="my_plot"
dev.print(file=fname, device=FOO, width=DEVw, height=DEVh, bg="transparent")
How do I do this such that I can specify FOO to be one of several choices? (GDD, PNG, postscript, etc.)
If I make FOO a character variable, then "dev.print" complains.
I tried a simpled "s...
2005 Dec 22
1
png support for R 2.2.1 (PR#8425)
Full_Name: Sylvain Broh?e
Version: 2.2.1
OS: Suse Linux 9.2
Submission from: (NULL) (164.15.109.58)
I recently went to a new version of R (2.2.1) but now, when trying to save a
plot in the png format, I got this error message :
> png("my_plot.png")
Error in X11(paste("png::", filename, sep = ""), width, height, pointsize, :
unable to start device PNG
In addition: Warning message:
no png support in this version of R
What can I do?
Sylvain
2017 Mar 19
3
RFC: (in-principle) native unquoting for standard evaluation
Would this return a quosure? (i.e. a single sided formula that captures
both expression and environment). That's the data structure we've adopted
in tidyeval as it already has some built in support.
Hadley
On Friday, March 17, 2017, Michael Lawrence <lawrence.michael at gene.com>
wrote:
> Interesting idea. Lazy and non-standard evaluation is going to happen; the
> language