similar to: How to specify the type and size of font in bitmap format output?

Displaying 20 results from an estimated 6000 matches similar to: "How to specify the type and size of font in bitmap format output?"

2009 Apr 05
1
problem with lattice tiff or bitmap: character size and color
Hi all, I am trying to make tiff files of lattice plots at a resolution greater than 300 dpi required by a journal (PLoS ONE). I have tried both the tiff and bitmap functions. tiff keeps panel colors but reduces axes and tick labels so they are nearly invisible. bitmap maintains correct label size but only produces greyscale. Regular plots work fine with tiff; the problem is only with lattice
2010 Aug 16
5
how to test if a vector contain a value?
Hi all, How to convert following simple python script to R if x in a_list: print x OR simply, how to test if a vector contain a value? Thank you in advance, Hyunchul [[alternative HTML version deleted]]
2010 Sep 03
4
function to compare numbers
Hi, all is there a built-in function to compare two numbers? something like following function cmp <- function(x, y){ value <- 0 if (x > y){ value <- 1 }else if (x == y){ value <- 0 }else { value <- -1 } return(value) } Thanks in advance, Hyunchul [[alternative HTML version deleted]]
2010 Aug 30
2
listing files recursively
Hi, all how to get all filenames in a directory and its all subdirectories? something like filenames <- c(Sys.glob('/path/to/directory/*'), Sys.glob('/path/to/directory/*/*'), Sys.glob('/path/to/directory/*/*/*'), ...) Thanks in advance, Hyunchul [[alternative HTML version deleted]]
2010 Aug 29
2
take component names of a list
Hi, all I want to take a vector of component names of a list. list.a <- list('x'=1, 'y'=2) how to get a c('x','y') from list.a? Thanks in advance, Hyunchul [[alternative HTML version deleted]]
2010 Sep 19
2
get time as a number
Hi, all, How to get a time as a number? While script is running, I want to print the elapsed time something like TIME_AS_SECOND() in the following script inittime <- TIME_AS_SECOND() for (i in 1:100){ do_something(i) curtime <- TIME_AS_SECOND() elapsedtime <- curtime-inittime print(paste(i, elapsedtime)) } Thanks in advance, Hyunchul [[alternative HTML version
2008 Dec 10
0
how to set font size in 'pt'
Dear all, I need to make a publication quality figure. Axis labels and xy labels should be written in a given font type and font size in "pt" but not in "px" or "inch". I tried dev2bitmap(... , pointsize= ) and pdf(... , pointsize= ) but I couldn't do what I want. I heard that many people use R to plot publication quality figures and tried. How did you write
2010 Aug 29
1
how to take a os.path.basename
Hi, all I made a simple R script to take the basename of a file without directory names. path.splitted <- strsplit('/path/to/a_basename', '/') path.length <- length(path.splitted[[1]]) basename <- path.splitted[[1]][path.length] # basename <- 'a_basename' Is there a simple function for this? something like os.path.basename(a_filename) of python? Thanks in
2010 Sep 04
1
how to free memory? (gc() doesn't work for me)
Hi, all I have a huge object that use almost all of available memory. R> rm(a_huge_object) R> gc() doesn't free memory and ?gc doesn't show anything. Are there any suggestion? Thanks in advance, Regards, Hyunchul [[alternative HTML version deleted]]
1999 Oct 04
1
bitmap copies of plots
Michael Lapsley was suggesting on R-help direct copies to gif/png/jpeg. The following seems to do a sensible job for me of copying the current device to any bitmap format supported by gs. The manipulation is needed to work around assumptions made by postscript(), and I think better fixed in postscript() (but not a couple of days before a release). I want to make onefile=FALSE work on
2000 Apr 28
1
dev2bitmap from a script invoked by another process
Issue: I have a R script that is invoked periodically by another process. In the script, a graphics is generated and I want to get a the image for the graph as a jpeg. Here is a prototypical version of the script (try.R): plot(1) dev2bitmap("try.jpg", type = "jpeg") I am running R-1.0.0 on Solaris 7. The script is invoked as: R --vanilla < try.R A file named try.jpg is
2008 Jan 22
2
X11 font at size 6 could not be loaded
I recently upgraded my OS to Fedora 8 from Red Hat Enterprise Work Station 3. Before I upgraded certain operations would produce a warning to the effect that a desired font was not available so one had been substituted, which was okay. After the upgrade to Fedora 8, the plotting operation halts midway through and I get the following error message: "X11 font at size 6 could not be loaded"
2007 May 22
5
Reducing the size of pdf graphics files produced with R
Hi, Without trying to print 1000000 points (see <http:// finzi.psych.upenn.edu/R/Rhelp02a/archive/42105.html>), I often print maps for which I do not want to loose too much of coastline detail, and/or plots with 1000-5000 points (yes, some are on top of each other, but using transparency (i.e. rgb colors with alpha information) this actually comes through as useful information.
2000 Jul 18
5
X11 & dev2bitmap
Hi, I am trying to put some graphics I have generated from R on a webpage using dev2bitmap to create a bitmap, .BMP, file. When I look at my notes from 2 or 3 months ago I was successfully able to put the ACTIVE device plot result into a bitmap file using a command such as: dev2bitmap("InsectSpray.BMP") Job done! Now when I try the same command, I get the following: >
2008 May 01
3
elseif syntax
Hi, all How to use elseif ? For example, like following short python examples. ********* x = 1 if x == 1: print 'same' *elif* x > 1: print 'bigger' else: print 'smaller' ********* Thanks in advance, Hyunchul Kim [[alternative HTML version deleted]]
2011 Jul 03
1
using Arial font
To whom it may concern, I am e-mailing you concerning the use of Arial Font in the program R and I am using a mac. I am trying to create graphs in R and the publisher I wish to publish an article with needs the font to be Arial. I have tried looking around to find out how to do this with no luck and must help on the topic is geared towards Linux users - the only help available is from the PLoS
2005 Jul 22
3
problems with submitting an eps-file created in R
Dear all I've got some problems submitting a manuscript, because I can't manage creating the favourable eps-file of a graph created in R. The journal's graphic requirements are as followed: format: eps width: max. 6 inches resolution: min. 1000 dpi supported fonts: Arial, Courier, Helvetica, Symbol, Times, Charcoal, Chicago, Geneva, Georgia, Monaco, Zapf, New York Itried to ways
2008 Feb 19
4
How to join path with arguments
Hi, all How to format and join strings ? For example, like following short python examples. ********* name1 = 'sample-plot' filename = '%s.png' % name1 inputdir = '/path/to/dir' os.path.join(inputdir, filename) ********** Best, Hyunchul Kim [[alternative HTML version deleted]]
2004 Nov 30
1
bitmap (blank image) plot rendering without X11
Hi, I am trying to generate plots on our unix (no X) server to be included in our web-pages -> specifically pngs. Without X, png() obviously doesn't work, so I have been trying to define the graphics print device bitmap as described in the help: > bitmap(file="plot.png", type = "png256", height = 6, width=6,res=72) > pie(c(12,5)) >
2008 Mar 06
1
histogram like x labels in barplot
Hi, all I drew a barplot with > barplot(data1, beside=TRUE) and then, I want to labels with hist() like x-axis ticks. How can I do this? Thanks in advance, Hyunchul