1

There is a very dense set of points I need to show - the pdf gets very large and I was thinking about only plotting every 10th data point

Example

plot(c(1:100),runif(100)) 

How do I only plot every 4th data? I know I could create a new input data frame but isn't there some easier thing?

2

1 Answer 1

1

You could do something like this:

x <- runif(100) # Every 10th element plot(x[seq.int(1, length(x), 10)]) # Every 4th element plot(x[seq.int(1, length(x), 4)]) 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.