search for: mwe

Displaying 20 results from an estimated 55 matches for "mwe".

Did you mean: mw
2017 Jun 14
2
draw stripes in a circle in R
dear R users, I would like to fill a circle with yellow stripes instead of a uniform yellow color. To draw the circle I used the following command after having loaded the (very nice !) plotrix library : library(plotrix) pdf("MWE.pdf",width=8, height=8) plot(seq(-12.5,-8.7,length.out=100),seq(-11.3,-8.3,length.out=100),type="l",col="red",xlim=c(-12.5,-8.7),ylim=c(-11.5,-8.5)) par(new=T) plot(seq(-12.5,-8.7,length.out=100),seq(-11.7,-8.7,length.out=100),type="l",col="red",xlim=c(-...
2017 Dec 04
3
problem with the behaviour of dashed lines in R plots
...t it has a very strange behaviour: the line starts dashed but then the spaces between each dash becomes very tiny and so the line become somehow continuous for the human eye. Do you know how to fix that problem, in order to have a dashed line with big enough spaces between the dashes? Here is a MWE (don't mind if clearly a linear model will not fit these "fake randomly generated" data). Also, changing the plot(...,type="l") to abline(regressor,lty=2,...) helps and draw a pure dashed line but it is impossible to force it to stay in the bounds of the data. Changing t...
2017 Jun 14
0
draw stripes in a circle in R
...ntaine at gssi.infn.it> wrote: >dear R users, > >I would like to fill a circle with yellow stripes instead of a uniform >yellow color. To draw the circle I used the following command after >having loaded the (very nice !) plotrix library : > >library(plotrix) >pdf("MWE.pdf",width=8, height=8) >plot(seq(-12.5,-8.7,length.out=100),seq(-11.3,-8.3,length.out=100),type="l",col="red",xlim=c(-12.5,-8.7),ylim=c(-11.5,-8.5)) >par(new=T) >plot(seq(-12.5,-8.7,length.out=100),seq(-11.7,-8.7,length.out=100),type="l",col="red&qu...
2013 Oct 04
2
abline is not plotting
Hello there, I have some data I want to plot together with a best-fit line. (see MWE below) The points from the first plot does appear as expected, but the abline does not appear, no matter what I change. I removed the log parameter before, but the abline is a very steep line around the origin. I really want to keep the logarithmic scale, plus a working abline. Can someone help me...
2017 Oct 02
2
Default value of the option initial in the ses function in the forecast package.
...help I have : Usage: ses(y, h = 10, level = c(80, 95), fan = FALSE, initial = c("optimal", "simple"), alpha = NULL, lambda = NULL, biasadj = FALSE, x = y, ...) My query is that if I do not mention the initial value will its default value be "optimal". A MWE would be : library(fpp) oildata <- window(oil,start=1996,end=2007) fit3 <- ses(oildata, h=3) In the above is the default value of initial "optimal" or "simple" ? Note I have taken this example from https://www.otexts.org/fpp/7/1 Best Regards, Ashim [[alternative HTM...
2017 Jun 14
3
draw stripes in a circle in R
...t; dear R users, >> >> I would like to fill a circle with yellow stripes instead of a uniform >> yellow color. To draw the circle I used the following command after >> having loaded the (very nice !) plotrix library : >> >> library(plotrix) >> pdf("MWE.pdf",width=8, height=8) >> plot(seq(-12.5,-8.7,length.out=100),seq(-11.3,-8.3,length.out=100),type="l",col="red",xlim=c(-12.5,-8.7),ylim=c(-11.5,-8.5)) >> par(new=T) >> plot(seq(-12.5,-8.7,length.out=100),seq(-11.7,-8.7,length.out=100),type="l",c...
2020 May 28
2
Question: llvm-link type merge behaviour of c++ classes
...riting an analysis tool for IR code which gets stuck in finding matching calls for function pointers. The changing and merging in these types messes up the current logic of finding matching candidates. To reproduce this code, find the c++ code below and use the following invocations: ``` clang++-9 mwe.cc -S -emit-llvm -o before_link.ll llvm-link-9 -S before_link.ll -o after_link.ll ``` mwe.cc ``` // #include "shapes.h" // shapes.h content follows class Shape {   public:     int width, height; }; class Rectangle : public Shape {   public:     bool is_square; }; class Container {   pu...
2017 Jun 15
1
draw stripes in a circle in R
...lty = lty, density=density, angle=angle, > lwd = lwd) > } > invisible(list(x = xv, y = yv)) > } > > Now run your call to pdf with draw.circle2 instead of draw.circle > > Best; > David. >>>> library(plotrix) >>>> pdf("MWE.pdf",width=8, height=8) >>>> plot(seq(-12.5,-8.7,length.out=100),seq(-11.3,-8.3,length.out=100),type="l",col="red",xlim=c(-12.5,-8.7),ylim=c(-11.5,-8.5)) >>>> par(new=T) >>>> plot(seq(-12.5,-8.7,length.out=100),seq(-11.7,-8.7,length.out=1...
2015 Oct 08
3
rank(, ties.method="last")
...keep) yy[nas] <- (length(y) + 1L):length(yy) } else { len <- sum(nas) yy[!nas] <- y + len yy[nas] <- seq_len(len) } y <- yy names(y) <- nm } else names(y) <- nm[!nas] y } ## MWE x <- c(10, 11, 11, 12, 12, 13) rank(x, ties.method="first") rank2(x, ties.method="last")
2017 Oct 26
3
ManageSieve: authenticate "EXTERNAL" not behaving correctly
Hi, I've enabled client certificate authentication for imap and managesieve. When I use Thunderbird with the sieve plugin it tries to login, but times out. Initially I reported this to the sieve plugin, but we came to the conclusion that it managesieve is misbehaving. https://github.com/thsmi/sieve/issues/94 Thunderbird (win10-64) 52.4.0 (32bit) Sieve 0.2.3k Dovecot (Ubuntu 16.04.3 LTS)
2023 Mar 04
1
legend: interplay between title and y.intersp
Hi, my MWE is not working as expected: plot(c(0,1), c(0,1), type="n") legend("top", legend=c("", "", "a"), col=c("blue", "red", "green"), title="test", y.intersp=0.2, lwd=1) The lines are not below the title. I want...
2010 Feb 18
1
pictex
The example at ?pictex does not work (the driver apparently uses 'rotatebox') for me as stated. It did compile after including the graphicsx package. A MWE is at the help page for pictex. I tried to get in touch with Valerio but his email bounced. Probably we want to add a \usepackage{graphicsx} to the help page and try to track down Valerio. Cheers, Kyle This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) > sessionInfo() R version 2.1...
2017 Jun 14
0
draw stripes in a circle in R
...ntaine at gssi.infn.it> wrote: >dear R users, > >I would like to fill a circle with yellow stripes instead of a uniform >yellow color. To draw the circle I used the following command after >having loaded the (very nice !) plotrix library : > >library(plotrix) >pdf("MWE.pdf",width=8, height=8) >plot(seq(-12.5,-8.7,length.out=100),seq(-11.3,-8.3,length.out=100),type="l",col="red",xlim=c(-12.5,-8.7),ylim=c(-11.5,-8.5)) >par(new=T) >plot(seq(-12.5,-8.7,length.out=100),seq(-11.7,-8.7,length.out=100),type="l",col="red&qu...
2017 Sep 06
4
post_processor in rmarkdown not working
...ons on what I'm doing wrong? Below is the relevant snippet of the code. The full code is available at https://github.com/inbo/INBOmd/blob/post_processor/R/rsos_article.R https://github.com/inbo/INBOmd/blob/post_processor/inst/rmarkdown/templates/rsos_article/skeleton/skeleton.Rmd is an Rmd is a MWE that fails compile because the post_processor() is not run. Best regards, Thierry post_processor <- function( metadata, input_file, output_file, clean, verbose ) { text <- readLines(output_file, warn = FALSE) # set correct text in fmtext environment end_first_page <...
2017 Jun 14
0
draw stripes in a circle in R
...gon(xv, yv, border = border, col = col, lty = lty, density=density, angle=angle, lwd = lwd) } invisible(list(x = xv, y = yv)) } Now run your call to pdf with draw.circle2 instead of draw.circle Best; David. >>> >>> library(plotrix) >>> pdf("MWE.pdf",width=8, height=8) >>> plot(seq(-12.5,-8.7,length.out=100),seq(-11.3,-8.3,length.out=100),type="l",col="red",xlim=c(-12.5,-8.7),ylim=c(-11.5,-8.5)) >>> par(new=T) >>> plot(seq(-12.5,-8.7,length.out=100),seq(-11.7,-8.7,length.out=100),type=&qu...
2024 Feb 05
1
ggarrange & legend
Could you supply us with a MWE (minimal working example)of what you have so far? Thanks. On Mon, 5 Feb 2024 at 05:00, SIBYLLE ST?CKLI via R-help < r-help at r-project.org> wrote: > Dear R community > > It is possible to adjust the legend in combined ggplots using ggarrange > with > be positions top, bottom...
2017 Dec 04
0
problem with the behaviour of dashed lines in R plots
...strange behaviour: the line starts dashed but then the spaces > between each dash becomes very tiny and so the line become somehow > continuous for the human eye. Do you know how to fix that problem, in order > to have a dashed line with big enough spaces between the dashes? > Here is a MWE (don't mind if clearly a linear model will not fit these "fake > randomly generated" data). > > Also, changing the plot(...,type="l") to abline(regressor,lty=2,...) helps > and draw a pure dashed line but it is impossible to force it to stay in the > bounds of...
2020 Jul 10
2
Strange behaviour of methods::slot() when returning a tibble
...html' ... done Wrapping the call in suppressWarnings() doesn't stop this, and this warning is printed every time the resultant object is called, e.g. df <- slot(object, name); df, would not print the error on the first call, but would print the warning every time df is printed. For an MWE setClass("track", slots = c(x="numeric", y="data.frame")) myTrack <- new("track", x = -4:4, y = tibble(y = 1)) myTrack df <- slot(myTrack, "y") df The package passes R CMD check even though this warning is produced in most examples. Chang...
2023 Mar 04
1
legend: interplay between title and y.intersp
...ot;, "", "a"), col=c("blue", "red", "green"), xpd = TRUE, lty = 1, y.intersp= .75, title = 'test') Cheers, Bert Cheers, Bert On Sat, Mar 4, 2023 at 7:45?AM Sigbert Klinke <sigbert at wiwi.hu-berlin.de> wrote: > Hi, > > my MWE is not working as expected: > > plot(c(0,1), c(0,1), type="n") > > legend("top", legend=c("", "", "a"), col=c("blue", "red", "green"), > title="test", y.intersp=0.2, lwd=1) > > The lines a...
2017 Oct 02
0
Default value of the option initial in the ses function in the forecast package.
...es(y, h = 10, level = c(80, 95), fan = FALSE, initial = c("optimal", > "simple"), alpha = NULL, lambda = NULL, biasadj = FALSE, x = y, ...) > > My query is that if I do not mention the initial value will its default > value be "optimal". > > A MWE would be : > > library(fpp) > oildata <- window(oil,start=1996,end=2007) > fit3 <- ses(oildata, h=3) > > In the above is the default value of initial "optimal" or "simple" ? > > Note I have taken this example from https://www.otexts.org/fpp/7/1...