Displaying 20 results from an estimated 5000 matches similar to: "jpeg, dev.off() inside function"
2007 Nov 07
2
dates
Dear R users,
I am just starting with R and am currently needing a lot of help! Sorry if
I disturb you and thank you for your answers!!!
Here goes my question: How do I make R reconize my date columns as dates?
When I "summary" my table, the levels of my date column are completely out
of order.
Thank you again for this tip,
Marcia
--
View this message in context:
2007 Nov 30
1
main plot title
Dear R users,
I am having a problem with the main title of a plot. I have written a
function returning a plot and I would like that the main title of this plot
shows actually the name of the dataset I have used. So, for instance: if my
dataset is called Chl, I would like that my plot to be entitled : "Raw
periodogram of Chl". I know the function "paste". I suppose I would be
2008 Jul 11
3
Start preferred RGui
Dear R users,
I have been having a problem since I installed the new versions of TinnR and
R on my computer (1.19.4.7 and 2.6.0 respectively). I used to open R by the
command "start preferred RGUI", on the "R" tab of TinnR's menu. But now,
since I updated both softwares (which was necessary for some compatibility
issue with Windows Vista), the path for my preferred RGui (
2008 Jan 16
2
R and Vista
Hello R users,
I have been using R for a while on xp and have just updated my system to
vista. Have encountered some problems... First and main problem is that i
cannot make R recognize my own written functions by coping them into the
Rprofile.site on the etc folder. For some reason, this very useful tool
seems not to be working anymore. Could someone help?? Any other suggestion
to make R start
2007 Dec 06
2
simple problems
Hello R users,
I have been looking through Help files and Nabble list for the answers for
these simple questions, but it seems to be fruitless.
1- in a data frame with two columns, x and y, how do I get the corresponding
value of x to, let's say, the minimum value of the y column (min (data$y)) ?
2- how do I solve a simple equation? Considering the equation y= exp(-x)^12,
I would like to find
2007 Jan 15
2
Problem with pdf, png, jpeg devices and files named CON on Window s
Hi
I cannot seem to create any files that have the name "CON" before the file
extension, i.e. all of the following fail:
> pdf("CON.pdf")
Error in pdf("CON.pdf") : unable to start device pdf
> jpeg('CON.jpeg')
Error in jpeg("CON.jpeg") : unable to start device devWindows
> png('CON.png')
Error in png("CON.png") : unable
2005 Oct 02
1
Size of jpegs/pngs
Dear all
I have trouble with setting the size for jpegs and pngs. I need to save a dendrogram of 1000 words into a jpeg or png file. On one of my computers, the following works just fine:
bb<-agnes(aa, method="ward")
jpeg("C:/Temp/test.txt", width=17000, height=2000)
plot(bb)
dev.off()
On my main computer, however, this doesn't work:
>
2016 Sep 21
1
Handlers in setGraphicsEventHandlers() can recursively call getGraphicsEvent(). Intended behavior?
doKeybd() gets called in CHelpKeyIn() and NHelpKeyIn() in
library/grDevices/src/devWindows.c, where the call is encapsulated in an
'if (dd->gettingEvent)' block. So the only times this code ever calls
doKeybd() is when gettingEvent is in fact set.
Further, it's called in two locations in X11_eventHelper(), in
modules/X11/devX11.c, where the state of gettingEvent seems to be moot
2008 Mar 22
1
About R question
Hi,
After I installed R in my computer, I have loaded package Faraway, but
when I want to plot, it will show errors like below:
*> x<-c(1,2)
> y<-c(3,4)
> plot(x,y)
Error in windows() : unable to start device devWindows*
I don't know why, please help me.
Shuyan
[[alternative HTML version deleted]]
2006 Nov 22
3
saving graphics in jpeg format
Dear R users,
I need to save a graph in jpeg format. After plotting the graph,
when the graphics window is active, in the File menu, the
Save as / Jpeg / 100% quality correctly saves the graph in jpeg format.
But I would like to know, how could I control the resolution (in dpi)
of the saved jpeg file? I need to produce a jpeg at 1200 dpi.
I have tried also the jpeg function in the package
2006 May 25
11
belongs_to confusion and some other questions - thanks!
Hello all,
Thanks for the help in advance, I am having some trouble with
belongs_to, and I caint seem to figure it out.
I have two tables, one called ''pow_users'' and one is called ''pow_site''
pow_users has a field called site that has the site ID for primary id in
the pow_site'' table.
the pow_site table setup as the Site class with the following:
2003 Jan 31
2
png()/jpeg()
When I execute the following code, it works just like I want it to: three
pages of nine (or fewer) plots. However, when I execute the code with the
first and last lines uncommented, I get three pages (files), but the 2nd &
3rd pages have overlapping plots. It's like a new page wasn't created.
I'm pretty sure I've either misplaced or left out a crucial call to some
2006 Apr 11
3
model classes in different folders
Hello,
I have the following structure:
- app
- controllers
- helpdesk
- call_controller.rb (Helpdesk::CallController <
ApplicationController)
- models
- employee.rb
- department.rb (Department < ActiveRecord::Base)
- helpdesk
- call.rb
- call_history.rb (Helpdesk::CallHistory < ActiveRecord::Base)
Is it possible to have a relationship between
2008 Feb 19
1
Bug using X11 on mac osx (for jpeg or png creation) (PR#10800)
Full_Name: Stephane Bonneaud
Version: 2.6.2
OS: OSX - Leopard 10.5.2
Submission from: (NULL) (195.221.233.130)
Hello,
I have a R code file containing the following code:
-------
# This code is in r2jpg.r
# myData is filled here with some data from a file
jpeg(filename="test.jpg",width=960,height=720,pointsize=16,quality=100)
plot(myData,xlab="anything",
2010 Mar 30
2
jpeg() saving blank files?
Hi,
I am having trouble saving graphics from R. jpeg() saves a file with
the correct name to the correct directory, but it consists of a blank
(white) jpeg with the specified dimensions--the image itself is not
being saved.
My code is
jpeg(filename="myfile.jpg",
height = 2.5, width = 8, units = "in", res = 72,
pointsize = 12, quality = 100, bg = "white",
2009 Dec 17
2
mantel test and NAs
Dear R users,
I am having a problem performing the mantel test (both with functions mantel
{vegan} and mantel.test {ape}) due to I believe the presence of NAs on my
distance matrices, which look like e.g.:
NA
1 2
1 2 3
NA 4 5 6
and
1
1 2
2 3 4
5 6 7 8
Would any of you have a solution for that?
Thank you for much for your help!
Marcia Rocha
--
View this message in
2006 Nov 24
2
plot() and Jpeg() increase font size and resolution
Dear list,
I am having troubles increasing the fontize when plotting a
variogram{gstat} and its model (vgm) with plot and using jpeg(). Also
the resolution in the jpeg call does not work. I am using R2.4 on
Mandriva 10.2 linux.
I can change fontsize with cex.axis in a normal plot, so I presume it
has to do with plotting the variogram model. Any help on how to increase
the font size and
2007 Jan 04
3
TC again - now working on VPN traffic
Hi!
It''s me again bothering you guys, what I want to do is to give full
bandwidth to VPN traffic and limit the rest to 30KB/s (kilobytespersecond),
ok?
Here''s what I have:
tcclasses
##################################
eth0 1 1kbps 70kbps 1
eth0 2 1kbps 30kbps 2 default
eth1 3 15kbps 10000kbps 1
eth1 4
2010 Jan 23
1
Failure to produce italics in jpeg
Colleagues,
Using R 2.10.1 in OS X (Snow Leopard), I created JPEG documents that
were intended to include italicized text. In the JPEG versions, the
italics appear in bold-face. The identical code (except for the call
to the device) yields italics in PDF. A minimal example is:
PDF version:
> pdf("plot.pdf")
> plot(1,1)
> mtext(bquote(italic(P) < .(0.005)))
>
2009 Jun 17
1
Unable to use jpeg(), png() etc.....
Hello,
I 've just re-installed R 2.9.0 on ubuntu 9.04.
I do not understand why I am unable to use simple device function such as jpeg(), png()...
> png()
Error in X11(paste("png::", filename, sep = ""), width, height, pointsize, :
unable to start device PNG
In addition: Warning message:
In png() : no png support in this version of R
> capabilities()
jpeg