Displaying 20 results from an estimated 600 matches similar to: "Getting variable name used in function..."
2017 Dec 04
1
ggtern and bquote...
D'oh! Thanks for pointing this out. I blame caffeine depletion at the time...
-pd
> On 4 Dec 2017, at 15:48 , Eik Vettorazzi <E.Vettorazzi at uke.de> wrote:
>
> reading ?plotmath you might notice that "_" isn't the propper syntax for
> subscripts. This will work:
>
> ggtern(data=x11,aes(A,B,C,xend = c(0.7,.00,0.7),yend =
> c(.30,.50,.0),zend
2017 Dec 04
1
YNT: ggtern and bquote...
Hi,
My example code is this;
x11<-data.frame(A=c(.6,.6,.6),B=c(.20,.20,.20),C=c(0.20,.20,.20))
ggtern(data=x11,aes(A,B,C,xend = c(0.7,.00,0.7),yend = c(.30,.50,.0),zend =c(.0,.50,0.3)))+
geom_point()+
theme_showarrows()+geom_segment(size=.5)+
geom_text_viewport(x=c(.45,.27,.37),y=c(.32,.29,.22),label=as.expression("P_a","P_b","P_c"))
2017 Dec 04
0
YNT: ggtern and bquote...
reading ?plotmath you might notice that "_" isn't the propper syntax for
subscripts. This will work:
ggtern(data=x11,aes(A,B,C,xend = c(0.7,.00,0.7),yend =
c(.30,.50,.0),zend =c(.0,.50,0.3)))+
geom_point()+
theme_showarrows()+geom_segment(size=.5)+
geom_text_viewport(x=c(.45,.27,.37),y=c(.32,.29,.22),label=c("P[a]","P[b]","P[c]"),
parse=TRUE)
2017 Nov 22
0
ccomp Composition and ggtern plot...
I have no clue what this package is for, but reading the help page for the ccomp function tells you that it returns a numeric vector or matrix. How do YOU want to display information from this numeric vector? That will determine how you would put it into a data frame.
--
Sent from my phone. Please excuse my brevity.
On November 22, 2017 3:13:01 AM PST, Levent TERLEMEZ via R-help <r-help at
2017 Dec 04
2
ggtern and bquote...
Dear Users,
What is the proper way to write symbol, superscript, subscript in ggtern/ggplot? I tried every given example, every possible features of ggplot but couldn?t achived. I just want to write P_a, sigma^2, etc, would you please advise me about this problem.
Thanks in advance,
Levent TERLEMEZ
________________________________
Bu elektronik posta ve onunla iletilen b?t?n dosyalar sadece
2017 Nov 22
2
ccomp Composition and ggtern plot...
Dear Users,
I would like to use compositions package with ggplot/ggtern, other composition classes of compositional package can be used with ggtern by converting to data frame but I could do anything with c(ount)comp class. Ggplot/ggtern can not recognise comp and also can not be converted to data frame. Is there any other way to do this?
Thank you in advance,
Levent TERLEMEZ.
2017 Dec 04
0
ggtern and bquote...
> On 4 Dec 2017, at 11:58 , Levent TERLEMEZ via R-help <r-help at r-project.org> wrote:
>
> Dear Users,
>
> What is the proper way to write symbol, superscript, subscript in ggtern/ggplot? I tried every given example, every possible features of ggplot but couldn?t achived. I just want to write P_a, sigma^2, etc, would you please advise me about this problem.
Did you try
2017 Dec 04
2
ggtern and bquote...
>>>>> peter dalgaard <pdalgd at gmail.com>
>>>>> on Mon, 4 Dec 2017 14:55:19 +0100 writes:
>> On 4 Dec 2017, at 11:58 , Levent TERLEMEZ via R-help
>> <r-help at r-project.org> wrote:
>>
>> Dear Users,
>>
>> What is the proper way to write symbol, superscript,
>> subscript in
2006 Mar 31
1
adding texts to plots and a problem....
Hello,
I have a problem with adding texts to my plots: The code is
/plot(dates(as.character(tam[,tkolon])),d[,i],ylab=names(d[i]),ylim=c(galt,gust),type="l")
abline(orta,0,lty=3,col=3)
text(//length(d[,i]//),0.025+(orta),expression(mu),col=3)
abline(orta+l2,0,lty=4,col=2)
text(length(d[,i]),0.025+(orta+l2),expression(+2*sigma),col=2)
abline(orta-l2,0,lty=4,col=2)
2011 Oct 31
2
assignment operator <- does not work in a function...
Dear Users,
I have a little problem with assignment operator. It's working from command prompt but does not work same as in the command prompt in the function. Am I missing or forgetting something? The function is (tried on both 2.13.1 and 2.13.2) as below using arules and arulseViz packages:
>kuralfonk
function()
{
require(arules)
require(arulesViz)
2012 Jul 30
6
Convert variable to STring
Dear all,
I have a variable that I would like also to use it as a string. The reasons is that I want to collect results from different function to one table.. So when I use the
colnames(mymatrix) <-c(function1.function2,function3)
the function1, function2, function3 to be "converted" to simple strings so as
colnames(mymatrix)
2012 Feb 09
3
calling the function which is stored in a list
Hi
I'm storing two functions in a list
# creating two function
function1 <- function(n) {
return(sum(n))
}
function2 <- function(n) {
return(mean(n))
}
#storing the function
function3 =c(function1,function2)
is it possible to call the stored function and used it ?
x=c(10,29)
funtion3[1](x)
Thanks
-----
Thanks in Advance
Arun
--
View this message in context:
2008 Apr 22
2
optimization setup
Hi, here comes my problem, say I have the following functions (example case)
#------------------------------------------------------------
function1 <- function (x, theta)
{a <- theta[1] ( 1 - exp(-theta[2]) ) * theta[3] )
b <- x * theta[1] / theta[3]^2
return( list( a = a, b = b )) }
#-----------------------------------------------------------
function2<-function (x, theta)
{P
2009 Dec 22
1
[LLVMdev] is there a compiler barrier that is effective at codegen level?
Hi,
I would like to prevent that two adjacent calls to external functions getting
interleaved/separated by other neighboring code. This mixing seems to happen
in the code generator. I can prevent it by putting the two calls into a
separate BB, but then I can't use -simplifycfg, -jump-threading, ... as is.
Here is an example:
%160 = add i64 %158, %159 ; <i64>
2014 Jun 11
3
[LLVMdev] How do clang & clang++ choose function names for LLVM IR?
Hello all,
I'm getting started on a project using LLVM's opt tool to do static
analysis, printing call graphs and such. When compiling C programs to IR
(and eventually to call graphs), function names remain the same (main,
function1, function2 etc.), but when compiling the same program as C++, the
function names often have cruft added to them (_Z9function1v, _Z9function2v
etc.) which
2009 Dec 03
2
Error in namespaceExport(ns, exports) :
Dear all,
I get the error
"Error in namespaceExport(ns, exports) :
undefined exports function1 , function2"
when compiling or even when I roxygen my package. The two function I once
had in my package but I deleted them including their .Rd files. I also can't
find them in any other function or help file.
So does anybody know where these functions are still listed that causes
2009 Dec 03
2
Error in namespaceExport(ns, exports) :
Dear all,
I get the error
"Error in namespaceExport(ns, exports) :
undefined exports function1 , function2"
when compiling or even when I roxygen my package. The two function I once
had in my package but I deleted them including their .Rd files. I also can't
find them in any other function or help file.
So does anybody know where these functions are still listed that causes
2024 Jul 09
2
Weird R Studio behaviour...
Hi,
Have a nice week. First of all, I know this is not R Studio forum but I want to ask here first, if you all do not mind. Well, I am away from my computer right now but, I have a strange problem (at least to me). My script worked perfectly for a year, and today, suddenly stop working because R Studio begins to warn me about illegal characters in the script.
System is on W 10, and R 3.4.1 is
2024 Jul 09
1
Weird R Studio behaviour...
I think you should also update R to the latest version, as that *might* be
the source of the problem.
Other may be able to give you a specific diagnosis, but updating R is to a
(reasonably, at least) current version is good practice anyway.
Cheers,
Bert
On Tue, Jul 9, 2024 at 8:11?AM Levent TERLEMEZ via R-help <
r-help at r-project.org> wrote:
> Hi,
>
> Have a nice week. First
2012 Oct 05
2
Using variables from different environments in one function
Dear R-community,
I have been experiencing this issue with functions within a function and
I can kind of feel where the problem is (environments, closures etc),
but I don't manage to solve it.
I will sketch it with an example:
#We have two simple "inner" functions:
############## INNER FUNCTION1 #################
innerfunction1<-function()
{
ab<-a+b