Sometimes we want to look at just one dimension of our data. But scatter plots are just one kind of graph. In the plot() function, the first argument should be. Per Capita GDP, 2007', scene = list ( xaxis = list ( title = 'GDP per capita (2000 dollars)', gridcolor = 'rgb(255, 255, 255)', range = c ( 2.003297660701705, 5.191505530708712 ), type = 'log', zerolinewidth = 1, ticklen = 5, gridwidth = 2 ), yaxis = list ( title = 'Life Expectancy (years)', gridcolor = 'rgb(255, 255, 255)', range = c ( 36.12621671352166, 91. Im trying to get a plot in R that would look something like A Y axis is just names that are not important at this moment. Weve seen a lot of ways to customize scatter plots. We can use the R function plot() to create a scatter plot for the variables weight and mpgCity variables. Library ( plotly ) data Life Expectancy:', lifeExp, 'GDP:', gdpPercap, 'Pop.:', pop )) fig % layout ( title = 'Life Expectancy v.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |