similar to: Tcl/Tk not working on Mac OS X

Displaying 20 results from an estimated 2000 matches similar to: "Tcl/Tk not working on Mac OS X"

2006 Jul 04
1
Exporting tables to RTF?
Greetings. Yesterday I managed to jury-rig a system to get a table out of R and import it into Nisus Writer Express (a word processor for Mac OS X). What I came up with is brittle, since it depends on an AppleScript script which has to be in a specific location and on no one touching the computer, since the AppleScript remotely controls Nisus Writer Express rather blindly and will make
2004 Sep 20
2
Getting the real names of variables within functions
Greetings. These days I find myself writing a lot of functions to handle routine things. One of these is a function to create a scatterplot of variables and draw a lowessed line so I can get some idea if there's any relationship between them. lowessed.plot <- function(x, y) { plot(x, y) lines(lowess(x, y)) } However, there's a slight problem: the plot axes come out labeled
2006 Jun 26
0
Tcl/Tk failing in JGR, but not in R for Mac OS X GUI
Dear r-helpers, I wonder if you can figure out why the following is working: ******************************************************************** > sessionInfo() Version 2.3.1 (2006-06-01) powerpc-apple-darwin8.6.0 attached base packages: [1] "tcltk" "methods" "stats" "graphics" "grDevices" "utils"
2004 Jul 20
5
Precision in R
Greetings. I'm trying to recreate in R some regression models I've done in SAS, but I'm not getting the same results. My advisor suspects this may be due to differences in precision between R and SAS. Does anyone know where I can find specifications for R's type double? (It doesn't seem to be in the R Language Definition.) Thanks in advance for any help anyone can
2018 Jan 02
4
httr::content without message
Hi All: I am using httr to download files form a service, in this case a .csv file. When I use httr::content on the result, I get a message. Since this will be in a package. I want to suppress the message, but haven't figured out how to do so. The following should reproduce the result: myURL <-
2017 Oct 17
2
ggridges help
yes, thanks, and I was getting close to that. One thing I found is the manual says the height is the distance above the y-line, which should be, but doesn't have to be positive. In fact, the time series are estimates of a cycle, and has negative values, which unfortunately are not included in my sub-sample. And the negative values are not handled properly (the series disappears for
2017 Aug 29
3
RMarkdown question
Hi All: In creating a R Notebook I know that in the text I can link to a (sub) section by using the command: [Header 1](#anchor) and putting the appropriate anchor name at the appropriate header. But can the same be done for code chunks, if the code chunk is named? What I want to do is say that such and such code chunk is an example of how to do something, and have that link to the
2017 Jun 01
3
Reversing one dimension of an array, in a generalized case
> On 1 Jun 2017, at 22:42, Roy Mendelssohn - NOAA Federal <roy.mendelssohn at noaa.gov> wrote: > > Thanks to all for responses/. There was a question of exactly what was wanted. It is the generalization of the obvious example I gave, > >>>> junk1 <- junk[, rev(seq_len(10), ] > > > so that > > junk[1,1,1 ] = junk1[1,10,1] > junk[1,2,1] =
2017 Jun 01
5
Reversing one dimension of an array, in a generalized case
Hi All: I have been looking for an elegant way to do the following, but haven't found it, I have never had a good understanding of any of the "apply" functions. A simplified idea is I have an array, say: junk(5, 10, 3) where (5, 10, 3) give the dimension sizes, and I want to reverse the second dimension, so I could do: junk1 <- junk[, rev(seq_len(10), ] but what I am
2017 Oct 17
2
ggridges help
I have tried: ggplot(plotFrame, aes(x = time, y = cycle, height = cycle, group = depth)) + geom_ridgeline() ggplot(plotFrame, aes(x = time, y = depth, height = cycle, group = depth)) + geom_ridgeline() ggplot(plotFrame, aes(x = time, y = depth, group = depth)) + geom_density_ridges() none are producing a plot that was a ridgeline for each depth showing the time series at that depth. The plot
2017 Jun 01
2
Reversing one dimension of an array, in a generalized case
My error. Clearly I did not do enough testing. z <- array(1:24,dim=2:4) > all.equal(f(z,1),f2(z,1)) [1] TRUE > all.equal(f(z,2),f2(z,2)) [1] TRUE > all.equal(f(z,3),f2(z,3)) [1] "Attributes: < Component ?dim?: Mean relative difference: 0.4444444 >" [2] "Mean relative difference: 0.6109091" # Your earlier example > z <- array(1:120, dim=2:5) >
2017 Oct 17
0
ggridges help
The min_height = -0.25 is there to make it show cycle values down to -1/4. You may want to change it to -1 so it shows more of the cycle values. Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Oct 17, 2017 at 1:26 PM, Roy Mendelssohn - NOAA Federal < roy.mendelssohn at noaa.gov> wrote: > yes, thanks, and I was getting close to that. One thing I found is the > manual says the
2017 Jun 01
0
Reversing one dimension of an array, in a generalized case
How about this: f <- function(a,wh){ ## a is the array; wh is the index to be reversed l<- lapply(dim(a),seq_len) l[[wh]]<- rev(l[[wh]]) do.call(`[`,c(list(a),l)) } ## test z <- array(1:120,dim=2:5) ## I omit the printouts f(z,2) f(z,3) Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into
2004 Nov 03
4
Newbie question: plotting regression models
Greetings. Is there any way to get R to take a regression model object and draw a plot of the regression function? How about overlaying that plot over a scatterplot of the actual data? Thanks in advance for any help anyone can provide. Aaron ----- Aaron Solomon?? (??ben Saul Joseph??) ??Adelman E-mail??: ??adelmaas at musc.edu Web site??: ??http??://??people.musc.edu??/??~adelmaas??/??
2017 Jun 01
3
Reversing one dimension of an array, in a generalized case
Here is an alternative approach using apply(). Note that with apply() you are reversing rows or columns not indices of rows or columns so apply(junk, 2, rev) reverses the values in each column not the column indices. We actually need to use rev() on everything but the index we are interested in reversing: f2 <- function(a, wh) { dims <- seq_len(length(dim(a))) dims <-
2017 Jun 01
1
Reversing one dimension of an array, in a generalized case
Thanks again. I am going to try the different versions. But I probably won't be able to get to it till next week. This is probably at the point where anything further should be sent to me privately. -Roy > On Jun 1, 2017, at 1:56 PM, David L Carlson <dcarlson at tamu.edu> wrote: > > On the off chance that anyone is still interested, here is the corrected function using
2017 Jun 01
0
Reversing one dimension of an array, in a generalized case
On the off chance that anyone is still interested, here is the corrected function using aperm(): z <- array(1:120,dim=2:5) f2 <- function(a, wh) { idx <- seq_len(length(dim(a))) dims <- setdiff(idx, wh) idx <- append(idx[-1], idx[1], wh-1) aperm(apply(a, dims, rev), idx) } all.equal(f(z, 1), f2(z, 1)) # [1] TRUE all.equal(f(z, 2), f2(z, 2)) # [1] TRUE
2017 Oct 17
0
ggridges help
Does the following work for you? ggplot2::ggplot(plotFrame, aes(x = time, y = depth, height = cycle, group = depth)) + ggridges::geom_ridgeline(fill="red", min_height=-0.25) Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Oct 17, 2017 at 12:43 PM, Roy Mendelssohn - NOAA Federal < roy.mendelssohn at noaa.gov> wrote: > I have tried: > > ggplot(plotFrame, aes(x =
2017 Oct 17
2
ggridges help
Hi All: I am just not understanding ggridges. The data I have are time series at different depths in the ocean. I want to make a joy plot of the time series by depth. If I was just doing a ggplot2 line plot I would be doing: ggplot(plotFrame, aes(x = time, y = cycle, group = depth)) + geom_line() but translating that to ggridges has not worked right. Below is the result from dput() of a
2003 Sep 23
1
what does the sum of square of Gaussian RVs with differen t variance obey?
This is a relatively recent article that is somewhat accessible. Jensen, D. R., and Solomon, Herbert (1994), "Approximations to joint distributions of definite quadratic forms", Journal of the American Statistical Association, 89 , 480-486 It has references to previous work. I also have an old paper that is so old I can't tell what journal it came out of:( Grad, Arthur and Solomon,