Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting in a loop #51

Open
NicoBia90 opened this issue Aug 7, 2019 · 1 comment
Open

Plotting in a loop #51

NicoBia90 opened this issue Aug 7, 2019 · 1 comment

Comments

@NicoBia90
Copy link

Hello,
I'm using a pirateplot inside a loop and I'd like to include the i-value in the title of the graph. How should I do it?

Thanks

@ndphillips
Copy link
Owner

Hi Nico, in this case, the paste() function is your friend.

For example, try..

library(yarrr)

for(i in 1:4) {
  
  pirateplot(weight ~ Time, data = ChickWeight, main = paste("plot", i))
  
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants