Add and Customize Text in Plots with R | R Tutorial 2.10 | MarinStatsLectures

  Рет қаралды 92,325

MarinStatsLectures-R Programming & Statistics

MarinStatsLectures-R Programming & Statistics

Күн бұрын

Пікірлер: 41
@carlospaez9606
@carlospaez9606 4 жыл бұрын
Hi man, you helped me so much in order to prepare a good quality graph for an Eolic Energy issue and off course you avoided me the job of developing that on Excel. Have a hug from Bogotá-Colombia
@ProfOlawaleAwe
@ProfOlawaleAwe 4 жыл бұрын
Thanks for your videos. You have really helped me a lot!
@paolobena
@paolobena 3 жыл бұрын
Great tutorial!
@CanDoSo_org
@CanDoSo_org 3 жыл бұрын
Very useful.
@emnakammoun6812
@emnakammoun6812 3 жыл бұрын
thank you very much. very helpful! how can I add error bars to a plot in R please?
@田你-r1f
@田你-r1f 9 жыл бұрын
Thanks man help me a lot
@marinstatlectures
@marinstatlectures 9 жыл бұрын
you're welcome +田你 !
@mayankgambhir6273
@mayankgambhir6273 7 жыл бұрын
Hi, Thanks for the video. I would like to know if it possible to use the formula for correlation within the text command itself and not hard code it. For example I would like to use something like labels = "r = cor(a, b)" instead of using labels = "r = 0.82". I tried using it at my local but i could only get either the value or the quoted text and not both. I tried different ways of achieving it but was not successful.
@joshua43214
@joshua43214 8 жыл бұрын
Great video. How do you use the actual r value, so you do not have to manually input it. In Python, you would use something like "R = " + str(round(corr(LungCap,Age),2)) which would roundit to 2 decimal places. Also, can you input Latex into plots? In other words, can you do sub strings and exponents? In Python, you use the escape character to indicate a latex string.
@shreyansbathiyan805
@shreyansbathiyan805 10 жыл бұрын
Hi, Very good videos..! I am wondering how can we memorize those commands and their attributes.. Framing logic seems easy but writing them in code needs to memorize all commands. Would you please guide on how to go through it.. Thanks in advance, -S
@marinstatlectures
@marinstatlectures 10 жыл бұрын
Hi Shreyans Bathiyan , thanks. how to remember something is quite personal, and what works for one person won't necessarily work for another. one suggestion i could make is to create a short document for yourself, with each command you learn and a brief outline of what it does, and how to use it. you could continually add to this document as you learn new R commands. hope that helps.
@shreyansbathiyan805
@shreyansbathiyan805 10 жыл бұрын
Thnks...looking foward for more informative videos.
@marinstatlectures
@marinstatlectures 10 жыл бұрын
Thanks Shreyans Bathiyan , we're always working on something, and tend to get a lot more of them done in the summer time, when our schedules are less hectic.
@notventjan7329
@notventjan7329 6 жыл бұрын
Yes, that is what I'm doing.
@webverse3442
@webverse3442 10 жыл бұрын
Really great tutorials !! No tutorials on NA values ..?? How to make R packages any resource on that...// thanks in advance !!
@marinstatlectures
@marinstatlectures 10 жыл бұрын
Hi Aakash saxena , most of the R commands allow you to use things like *na.omit* to omit NA values from the analysis, you can check out *?na.action* for some help on this from R. we are working on a series for more advanced ways of dealing with missing data, but this will be a few months before we are ready to release that. as for creating R packages, we don't plan on making any videos like that, but there are other good resources out there on the topic.
@webverse3442
@webverse3442 10 жыл бұрын
okayez...thank you very much..!!
@Matdan15
@Matdan15 3 жыл бұрын
Great video but how about if my X is char how to declare it
@yurimolotov3355
@yurimolotov3355 8 жыл бұрын
Thank you a lot for that video, but I want to ask, if I wrote wrong function on graph (added text on side 2 instead of side 3) is it way to remove it?
@marinstatlectures
@marinstatlectures 8 жыл бұрын
Hi +Yuri Molotau , you will just have to make the plot again. this is usually how things are done, you keep making a plot over again a few times, making small changes, until you get it to look just the way you want it to. the best thing to do is to use a script that you can just enter over and over again, continually making small changes to it.
@olinaz1839
@olinaz1839 3 жыл бұрын
How would you add graph captions in R?
@merumomo
@merumomo 8 жыл бұрын
Great video! Now how do you add text if the plot was bar graph and x axis has a name for each bar graph?
@marinstatlectures
@marinstatlectures 8 жыл бұрын
Hi +merumomo , we have a video showing how to change the x-axis labels specifically for bar plots here (kzbin.info/www/bejne/e6HLkIxmd9J7i5I) , as well as a video showing how to change the x-axis labels for all types of plots (kzbin.info/www/bejne/ooGyhKqcrbKXacU) , so i will refer you to those, as they provide a more comprehensive explanation than i can in a comment section here.
@merumomo
@merumomo 8 жыл бұрын
Thank you for your help!
@Cam-fz6iu
@Cam-fz6iu 6 жыл бұрын
What would you set your text(x=) argument to if the x-axis is a date value?
@marinstatlectures
@marinstatlectures 5 жыл бұрын
Hi, the "x" and "y" are the x-y coordinates of where you want the text to appear on the plot. if the x-axis is not numeric (but dates, or categories/factors, and things like this), most often x represents one of two things. either: 1) x will span from 0 to 1, with 0 being the furthest left on the plot, and 1 the furthest right on the plot....so the value of x is the relative position on the x-axis of where to have the text appear. or 2) the first category/factor-level of x will be position x=1, and the second category will be position x=2, and so on...and x is used this way. try out these two suggestions, and one of them should work out for you...
@imsujitpaul
@imsujitpaul 4 жыл бұрын
Hi, Mike I was going through a online R course and faces one problem, I couldn't find the solution. Could you please help?
@lastsak3185
@lastsak3185 9 жыл бұрын
Hello! First of all thanks for the videos and congrats for the effort! I need to represent 4 plots in 1 window. so i use par(mfrow=c(2,2). but i need a headline for the whole window. could you please tell me the command? i'm trying with mtext(text"blab bla",side=3, outer=T) . what am i doing wrong?
@marinstatlectures
@marinstatlectures 9 жыл бұрын
Thalis Tsaklas you're pretty much there, you just need to include one more argument in your *mtext* command. if you include a *line=-2* that should get you there. (i.e.) *mtext("Title you want", side=3, outer=T, line=-2)*. and you can play around with the value for the *line* argument to move the title up/down a bit, if the -2 isn't exactly where you want it to be.
@saadalhumaid3959
@saadalhumaid3959 3 жыл бұрын
Good tutorial but how comes you mot discussing how to do meta analysis using r studio?
@zedor1553
@zedor1553 6 жыл бұрын
can you do another video on how to align legends in plots where you want instead of "topright", etc.
@marinstatlectures
@marinstatlectures 6 жыл бұрын
Hi, we've already got that covered :) check out this video of ours to learn all about adding legends to plots (the x=, y= give the x/y coordinates of the upper left of the legend box): kzbin.info/www/bejne/o3OWmoambpKChsU
@igcn1
@igcn1 10 жыл бұрын
how to modify the previous text? say you want to put your text at the bottom initially, but after doing so, you find it is not as good and then you want to put it on the top?
@marinstatlectures
@marinstatlectures 10 жыл бұрын
HI igcn1 , you reproduce the plot. in R, there is not "editing" of an existing plot, you re-submit the plot command with the text in the new position that you want it to be, to produce a new plot.
@igcn1
@igcn1 10 жыл бұрын
thanks
@rszhu9825
@rszhu9825 8 жыл бұрын
Hi, Marin! Thanks a lot for your help to my studying R, but some Videos could not be watched, I wonder why? Some knowledge is very need. Could you help me! Thanks again. Kevin
@marinstatlectures
@marinstatlectures 8 жыл бұрын
Hi +Rs Zhu , I'm not sure why you are having issues viewing some videos...that will not be to do with the videos, but it will be an issue on your end. you may need to update some software, or something like that. hope you can figure it out soon.
@likhitha3580
@likhitha3580 6 жыл бұрын
Ok nice
@likhitha3580
@likhitha3580 6 жыл бұрын
Can't form to better information
Add and Customize Legends to Plots in R | R Tutorial 2.11| MarinStatsLectures
8:28
MarinStatsLectures-R Programming & Statistics
Рет қаралды 113 М.
How to Modify and Customize Plots in R | R Tutorial 2.9 | MarinStatsLectures
15:16
MarinStatsLectures-R Programming & Statistics
Рет қаралды 223 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Working with Variables and Data in R | R Tutorial 1.8 | MarinStatslectures
8:10
MarinStatsLectures-R Programming & Statistics
Рет қаралды 352 М.
Checking Linear Regression Assumptions in R | R Tutorial 5.2 | MarinStatsLectures
7:49
MarinStatsLectures-R Programming & Statistics
Рет қаралды 335 М.
Importing , Checking and Working with Data in R | R Tutorial 1.7 | MarinStatsLectures
8:46
MarinStatsLectures-R Programming & Statistics
Рет қаралды 460 М.
Subsetting (Sort/Select) Data in R with Square Brackets | R Tutorial 1.9| MarinStatsLectures
4:39
MarinStatsLectures-R Programming & Statistics
Рет қаралды 294 М.
ANOVA, ANOVA Multiple Comparisons & Kruskal Wallis in R | R Tutorial 4.9 | MarinStatsLectures|
4:37
MarinStatsLectures-R Programming & Statistics
Рет қаралды 215 М.
One-Sample t Test & Confidence Interval in R with Example | R Tutorial 4.1| MarinStatsLectures
4:40
MarinStatsLectures-R Programming & Statistics
Рет қаралды 212 М.
R Tutorial 25: z-scores with R
3:51
Michael T. Gastner's Quantitative Reasoning
Рет қаралды 13 М.
Setting Up Working Directory in R  | R Tutorial 1.11 | MarinStatsLectures
8:25
MarinStatsLectures-R Programming & Statistics
Рет қаралды 246 М.
Boxplots and Grouped Boxplots in R | R Tutorial 2.2 | MarinStatsLectures
4:15
MarinStatsLectures-R Programming & Statistics
Рет қаралды 363 М.
9.10 Poisson Regression in R: Fitting a Model To Rate Data (with offset) in R
3:49
MarinStatsLectures-R Programming & Statistics
Рет қаралды 14 М.