[R] Characters Failing in SVG Output

2021-08-19 Thread Donald Macnaughton
Hello list, The following program illustrates my problem: # The program illustrates an apparent error generating SVG files. # Note how the figure renders properly in the R graphics window, but # fails if you open it in in an SVG-capable viewer, such as Chrome, # Firefox, or Edge. # It appears

Re: [R] ISO recommendations for plot output format from R to MS Word

2021-02-19 Thread Donald Macnaughton
The native graphics format in Microsoft Office (including Word) is EMF (Enhanced MetaFile), which is an enhanced version of WMF (Windows MetaFile). This is a VECTOR format with embedded scalable fonts, so it scales perfectly to all sizes. R will output EMF graph files using Philip Johnson's

[R] FW: Can't Get Lattice Histogram Minor Tick Marks to Work

2018-04-25 Thread Donald Macnaughton
ing=FALSE,tck=c(1,0)), col="lightgray") --- Don Macnaughton -Original Message- From: Jeff Newmiller <jdnew...@dcn.davis.ca.us> Sent: Tuesday, April 24, 2018 11:28 PM To: r-help@r-project.org; Donald Macnaughton <don...@matstat.com>; R-Help <R-help@r-pro

Re: [R] Can't Get Lattice Histogram Minor Tick Marks to Work

2018-04-24 Thread Donald Macnaughton
scales=list(alternating=FALSE,tck=c(1,0)), col="lightgray") --- Don Macnaughton -Original Message- From: Jeff Newmiller <jdnew...@dcn.davis.ca.us> Sent: Tuesday, April 24, 2018 11:28 PM To: r-help@r-project.org; Do

[R] Can't Get Lattice Histogram Minor Tick Marks to Work

2018-04-24 Thread Donald Macnaughton
I'm drawing a paneled histogram using the lattice package. I've succeeded in adding minor tick marks to the vertical axis, but I can't get the desired number of minor tick marks between the major tick marks. I've attached a self-contained program to illustrate the problem. Thanks for your help,

[R] How Can I Execute a String Expression?

2017-06-12 Thread Donald Macnaughton
I have the string ggstr that I've built with string manipulation: ggstr = "ggplot(df1, aes(x,y)) + geom_smooth(se=FALSE, span=0.01)" Assuming df1 is properly defined, this string will execute properly if I submit it manually without the quotes. How can execute the command as a string, so that I

[R] How Can I Concatenate Every Row in a Data Frame with Every Other Row?

2009-03-21 Thread Donald Macnaughton
I have a data frame with roughly 500 rows and 120 variables. I would like to generate a new data frame that will include one row for each PAIR of rows in the original data frame and will include all 120 + 120 = 240 variables from the two rows. I need only one row for each pair, not two rows.

Re: [R] How Can I Concatenate Every Row in a Data Frame with Every Other Row?

2009-03-21 Thread Donald Macnaughton
On Sat, Mar 21, 2009 at 12:01 PM, I wrote: I have a data frame with roughly 500 rows and 120 variables.   I would like to generate a new data frame that will include one row for each PAIR of rows in the original data frame and will include all 120 + 120 = 240 variables from the two rows.