R: How to join multiple plots into one plot? -


this question has answer here:

i have 2 density distribution data , b, want plot 2 density curves 1 plot. used following codes:

plot(user.dens.tas, col="red", xlim=c(0,0.003)) plot(item.dens.tas, col="blue", xlim=c(0,0.003)) 

how can plot 2 curves 1 plot (combine them)?

enter image description here

plot(user.dens.tas, col="red", xlim=c(0,0.003)) lines(item.dens.tas, col="blue", xlim=c(0,0.003)) 

puts 1 line in read, other in blue on same plot. might consider adding title , other presentation niceties.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -