search for: posx

Displaying 8 results from an estimated 8 matches for "posx".

Did you mean: pos
2005 Oct 06
3
playing with R: make a animated GIF file...
...verse <- function(x) sapply(lapply(strsplit(x, NULL), rev), paste, collapse="") ######## logotype to animate yourLogo = "Is Nice to play with R-package " logoWidth = 1.5 logoHeight = 2.5 L = nchar(yourLogo) TrigSplit = 360 / L yourLogo = strReverse(yourLogo) posx = numeric(L) posy = numeric(L) for( i in 0:L){ posx[i] = logoHeight * sin(i * TrigSplit * pi / 180) posy[i] = logoWidth * cos(i * TrigSplit * pi / 180) } max_x = max(posx)*1.1 max_y = max(posy)*3 min_x = min(posx)*1.1 min_y = min(posy)*3 cex = 2/(posy + 2) idx = 1:L for(j in 1:L-1) { ####...
2018 Apr 12
3
Bivariate Normal Distribution Plots
R-Help I am attempting to create a series of bivariate normal distributions. So using the mvtnorm library I have created the following code ... # Standard deviations and correlation sig_x <- 1 sig_y <- 1 rho_xy <- 0.0 # Covariance between X and Y sig_xy <- rho_xy * sig_x *sig_y # Covariance matrix Sigma_xy <- matrix(c(sig_x ^ 2, sig_xy, sig_xy, sig_y ^ 2), nrow = 2, ncol = 2)
2009 Jun 04
0
[LLVMdev] Structure Alignment
...side. Is there on way to ensure that the LLVM reads the correct memory position in this case? //#pragma pack(4) struct xfirstStru { int var1; double var2; int var3; char *var4; }; typedef struct xfirstStru osX ; typedef struct xfirstStru* PosX ; //#pragma pack() // extern "C" int testOSX( PosX osx ) { printf("\nChamada C %d %f %d %s",++osx->var1,++osx->var2,++osx->var3,osx->var4); return 999; } it was ... f64:32:64 ... and I changed it to ... f64:64:64 ... %struct.VAR1. = getelementptr %FIR...
2010 Jan 04
0
ggplot2 = bar size
Hi, i am newbie into ggplot and i thow that i have to learn a lot about this package. I am doing this function to draw an graphic: library(ggplot2) posx <- theme_text(angle=45,hjust=1,face='bold',size=12) posy <- theme_text(angle=0,hjust=1,face='bold',size=12) y1 <- c(1,4,6,1,8,10,6,1,5,4) x <- qplot(x=factor(paste('nomes',1:10),labels=paste('nomes',1:10)), y= y1 , geom='bar',margins...
2009 Jun 04
1
[LLVMdev] Structure Alignment
...ect memory position > in this case? > > //#pragma pack(4) > struct xfirstStru > { > int var1; > double var2; > int var3; > char *var4; > }; > typedef struct xfirstStru osX ; > typedef struct xfirstStru* PosX ; > //#pragma pack() > // > extern "C" int testOSX( PosX osx ) > { > printf("\nChamada C %d %f %d %s",++osx->var1,++osx->var2,++osx->var3,osx->var4); > return 999; > } > > it was > ... f64:32:64 ... > and I changed it t...
2011 Aug 30
3
having trouble extracting week from chron object
Running R 2.13.1 on Windows XP. I would like to get week of the year (1-52) for each date. library(chron) dts <- dates(c("02/27/92", "02/27/92", "01/14/92","02/28/92", "02/01/92")) dts dts.chron <- as.chron(dts) dts.chron class(dts.chron) # all of these component extractions work: months(dts.chron) weekdays(dts.chron) years(dts.chron)
2003 Apr 10
1
Starcraft Patch
...amp; accel[2] != 0) { accelMult = 2; - if ((mi->dx > accel[1]) && (accel[2] == 2)) + if ((labs(mi->dx) > accel[1]) && (accel[2] == 2)) { accelMult = 4; } @@ -241,10 +241,10 @@ posX += (long)mi->dx * accelMult; accelMult = 1; - if (mi->dy > accel[0] && accel[2] != 0) + if (labs(mi->dy) > accel[0] && accel[2] != 0) { accelMult = 2; - if ((mi->dy > accel[1]) && (accel[2] == 2))...
2006 Oct 17
0
[680] trunk/wxruby2/samples/printing/printing.rb: Cleaned up to use the Ruby naming convention, added #! line, now uses Wx default ID''s in standard menu items.
...aleY </del><ins>+ actual_scale = scale_y </ins><span class="cx"> end </span><span class="cx"> </span><span class="cx"> # Calculate the position on the DC for centring the graphic </span><del>- posX = ((w - (200*actualScale))/2.0) - posY = ((h - (200*actualScale))/2.0) </del><ins>+ pos_x = ((w - (200*actual_scale))/2.0) + pos_y = ((h - (200*actual_scale))/2.0) </ins><span class="cx"> </span><span class="cx"> # Set the scale...