Query

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Query

NW2018!
Hi

I have been trying to circulate a question but my question keeps getting rejected. Let me try again via email. The message is below:

I am trying to change the tick size for IRF graphs that I created using the following code below:

par(mfrow=c(2,3))
IRF_F2 <- irf(SVARmod1, impulse="deltaw2",
          response=c("Belgium","France","Germany","Italy","Netherlands"),
n.ahead=60)
plot(IRF_F2,ylim=c(-0.5,0.3), plot.type="single", main="US Wealth Share
Shock")

The code gives me the following IRFs I have attached to this email. However the tick intervals is way too small and I want to change it to intervals of 10. I was thinking something like:

par(mfrow=c(2,3))
IRF_F2 <- irf(SVARmod1, impulse="deltaw2",

response=c("Belgium","France","Germany","Italy","Netherlands"),
n.ahead=60)
plot(IRF_F2,ylim=c(-0.5,0.3), plot.type="single", main="US Wealth
Share Shock", xaxt="n")
axis(side= 1, at = c(10, 20, 30, 40, 50, 60))

But it doesn't work. Any suggestions on how to reduce the tick interval?

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Bond IRFs (Euro Zone) FINAL.png (90K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Query

John Kane-3
What package has the irf function?

On Fri, 23 Apr 2021 at 09:34, Sun Yong Kim
<[hidden email]> wrote:

>
> Hi
>
> I have been trying to circulate a question but my question keeps getting rejected. Let me try again via email. The message is below:
>
> I am trying to change the tick size for IRF graphs that I created using the following code below:
>
> par(mfrow=c(2,3))
> IRF_F2 <- irf(SVARmod1, impulse="deltaw2",
>           response=c("Belgium","France","Germany","Italy","Netherlands"),
> n.ahead=60)
> plot(IRF_F2,ylim=c(-0.5,0.3), plot.type="single", main="US Wealth Share
> Shock")
>
> The code gives me the following IRFs I have attached to this email. However the tick intervals is way too small and I want to change it to intervals of 10. I was thinking something like:
>
> par(mfrow=c(2,3))
> IRF_F2 <- irf(SVARmod1, impulse="deltaw2",
>
> response=c("Belgium","France","Germany","Italy","Netherlands"),
> n.ahead=60)
> plot(IRF_F2,ylim=c(-0.5,0.3), plot.type="single", main="US Wealth
> Share Shock", xaxt="n")
> axis(side= 1, at = c(10, 20, 30, 40, 50, 60))
>
> But it doesn't work. Any suggestions on how to reduce the tick interval?
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



--
John Kane
Kingston ON Canada

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Query

NW2018!
vars package
________________________________
From: John Kane <[hidden email]>
Sent: Sunday, April 25, 2021 12:30 PM
To: Sun Yong Kim <[hidden email]>
Cc: [hidden email] <[hidden email]>
Subject: Re: [R] Query

What package has the irf function?

On Fri, 23 Apr 2021 at 09:34, Sun Yong Kim
<[hidden email]> wrote:

>
> Hi
>
> I have been trying to circulate a question but my question keeps getting rejected. Let me try again via email. The message is below:
>
> I am trying to change the tick size for IRF graphs that I created using the following code below:
>
> par(mfrow=c(2,3))
> IRF_F2 <- irf(SVARmod1, impulse="deltaw2",
>           response=c("Belgium","France","Germany","Italy","Netherlands"),
> n.ahead=60)
> plot(IRF_F2,ylim=c(-0.5,0.3), plot.type="single", main="US Wealth Share
> Shock")
>
> The code gives me the following IRFs I have attached to this email. However the tick intervals is way too small and I want to change it to intervals of 10. I was thinking something like:
>
> par(mfrow=c(2,3))
> IRF_F2 <- irf(SVARmod1, impulse="deltaw2",
>
> response=c("Belgium","France","Germany","Italy","Netherlands"),
> n.ahead=60)
> plot(IRF_F2,ylim=c(-0.5,0.3), plot.type="single", main="US Wealth
> Share Shock", xaxt="n")
> axis(side= 1, at = c(10, 20, 30, 40, 50, 60))
>
> But it doesn't work. Any suggestions on how to reduce the tick interval?
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-help__;!!Dq0X2DkFhyF93HkjWTBQKhk!ANzmkRglqFkZT0F8ICLJH_RiaYVwyaJXw8dNqctnUZELgnK40ZBoSLhCQEnOFFw68r29nt9j0mkpJ2fB$
> PLEASE do read the posting guide https://urldefense.com/v3/__http://www.R-project.org/posting-guide.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!ANzmkRglqFkZT0F8ICLJH_RiaYVwyaJXw8dNqctnUZELgnK40ZBoSLhCQEnOFFw68r29nt9j0kVB9796$
> and provide commented, minimal, self-contained, reproducible code.



--
John Kane
Kingston ON Canada

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Query

Jim Lemon-4
Hi SunYong,
The docs are not exactly clear on this, but you might try adding
axes=FALSE instead of xaxt="n" and then calling both axes separately.

Jim


On Mon, Apr 26, 2021 at 5:28 PM Sun Yong Kim
<[hidden email]> wrote:

>
> vars package
> ________________________________
> From: John Kane <[hidden email]>
> Sent: Sunday, April 25, 2021 12:30 PM
> To: Sun Yong Kim <[hidden email]>
> Cc: [hidden email] <[hidden email]>
> Subject: Re: [R] Query
>
> What package has the irf function?
>
> On Fri, 23 Apr 2021 at 09:34, Sun Yong Kim
> <[hidden email]> wrote:
> >
> > Hi
> >
> > I have been trying to circulate a question but my question keeps getting rejected. Let me try again via email. The message is below:
> >
> > I am trying to change the tick size for IRF graphs that I created using the following code below:
> >
> > par(mfrow=c(2,3))
> > IRF_F2 <- irf(SVARmod1, impulse="deltaw2",
> >           response=c("Belgium","France","Germany","Italy","Netherlands"),
> > n.ahead=60)
> > plot(IRF_F2,ylim=c(-0.5,0.3), plot.type="single", main="US Wealth Share
> > Shock")
> >
> > The code gives me the following IRFs I have attached to this email. However the tick intervals is way too small and I want to change it to intervals of 10. I was thinking something like:
> >
> > par(mfrow=c(2,3))
> > IRF_F2 <- irf(SVARmod1, impulse="deltaw2",
> >
> > response=c("Belgium","France","Germany","Italy","Netherlands"),
> > n.ahead=60)
> > plot(IRF_F2,ylim=c(-0.5,0.3), plot.type="single", main="US Wealth
> > Share Shock", xaxt="n")
> > axis(side= 1, at = c(10, 20, 30, 40, 50, 60))
> >
> > But it doesn't work. Any suggestions on how to reduce the tick interval?
> > ______________________________________________
> > [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> > https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-help__;!!Dq0X2DkFhyF93HkjWTBQKhk!ANzmkRglqFkZT0F8ICLJH_RiaYVwyaJXw8dNqctnUZELgnK40ZBoSLhCQEnOFFw68r29nt9j0mkpJ2fB$
> > PLEASE do read the posting guide https://urldefense.com/v3/__http://www.R-project.org/posting-guide.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!ANzmkRglqFkZT0F8ICLJH_RiaYVwyaJXw8dNqctnUZELgnK40ZBoSLhCQEnOFFw68r29nt9j0kVB9796$
> > and provide commented, minimal, self-contained, reproducible code.
>
>
>
> --
> John Kane
> Kingston ON Canada
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Query

Rui Barradas
In reply to this post by NW2018!
Hello,

What you are trying to do is not possible without editing the plot
method for objects of class "varirf". See its code with


getAnywhere("plot.varirf")


Argument axes = FALSE is set in the code followed by explicit calls to
axis(1, etc) and axis(2, etc).

Contact the

maintainer("vars")

?


Hope this helps,

Rui Barradas


Às 18:31 de 25/04/21, Sun Yong Kim escreveu:

> vars package
> ________________________________
> From: John Kane <[hidden email]>
> Sent: Sunday, April 25, 2021 12:30 PM
> To: Sun Yong Kim <[hidden email]>
> Cc: [hidden email] <[hidden email]>
> Subject: Re: [R] Query
>
> What package has the irf function?
>
> On Fri, 23 Apr 2021 at 09:34, Sun Yong Kim
> <[hidden email]> wrote:
>>
>> Hi
>>
>> I have been trying to circulate a question but my question keeps getting rejected. Let me try again via email. The message is below:
>>
>> I am trying to change the tick size for IRF graphs that I created using the following code below:
>>
>> par(mfrow=c(2,3))
>> IRF_F2 <- irf(SVARmod1, impulse="deltaw2",
>>            response=c("Belgium","France","Germany","Italy","Netherlands"),
>> n.ahead=60)
>> plot(IRF_F2,ylim=c(-0.5,0.3), plot.type="single", main="US Wealth Share
>> Shock")
>>
>> The code gives me the following IRFs I have attached to this email. However the tick intervals is way too small and I want to change it to intervals of 10. I was thinking something like:
>>
>> par(mfrow=c(2,3))
>> IRF_F2 <- irf(SVARmod1, impulse="deltaw2",
>>
>> response=c("Belgium","France","Germany","Italy","Netherlands"),
>> n.ahead=60)
>> plot(IRF_F2,ylim=c(-0.5,0.3), plot.type="single", main="US Wealth
>> Share Shock", xaxt="n")
>> axis(side= 1, at = c(10, 20, 30, 40, 50, 60))
>>
>> But it doesn't work. Any suggestions on how to reduce the tick interval?
>> ______________________________________________
>> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
>> https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-help__;!!Dq0X2DkFhyF93HkjWTBQKhk!ANzmkRglqFkZT0F8ICLJH_RiaYVwyaJXw8dNqctnUZELgnK40ZBoSLhCQEnOFFw68r29nt9j0mkpJ2fB$
>> PLEASE do read the posting guide https://urldefense.com/v3/__http://www.R-project.org/posting-guide.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!ANzmkRglqFkZT0F8ICLJH_RiaYVwyaJXw8dNqctnUZELgnK40ZBoSLhCQEnOFFw68r29nt9j0kVB9796$
>> and provide commented, minimal, self-contained, reproducible code.
>
>
>
> --
> John Kane
> Kingston ON Canada
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.