Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7552129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:40:55+00:00 2026-05-30T10:40:55+00:00

Name UP Downs A 10 -3 B 2 -4 C 1 -1 D 4

  • 0
Name    UP  Downs
A   10  -3
B   2   -4
C   1   -1
D   4   -1
E   5   0
F   0   -1
G   6   -5
H   0   -1
I   7   -1
J   0   -1
K   0   -11
L   3   -1
M   0   -13
N   2   -1
O   0   -1
P   1   -1
Q   0   0
R   1   -1
S   0   0
T   12  -1
.....
.........
..........
(goes all the way to 2500 rows) 

Here is what my R code looks like…

nba <- read.csv("test.csv")
plot(nba$UP, type="b", lwd=1, xaxt="n", ylim=c(-22, 22), col="red", xlab="Name", 
    ylab="Change", main="My plot")
axis(1, at=1:length(nba$Name), labels=nba$Name)
lines(rain$Downs, col="green", type="b", lwd=1)

This code works well…but the xaxis when plotted shows few selected “Name” and not all of them. The question is …Is there a way to show all the text in the xaxis (either vertical with smaller font) and is there a way when i save the file as an image…i can zoom in and view the xaxis labels.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:40:56+00:00Added an answer on May 30, 2026 at 10:40 am

    You may find it easier to analyse your plot if you are more selective about what it is you really want to plot and label.

    For example, one strategy in labelling plots with many observations is to label only the outliers. Here is an example of how you might go about labelling only the highest and lowest scores in your data.

    Create some sample data and plot.

    set.seed(1)
    n <- 100
    nba <- data.frame(
        obs = 1:n,   
        Name = paste("label", 1:n, sep="_"), 
        UP = sample(0:15, n, replace=TRUE), 
        Downs = sample(-15:0, n, replace=TRUE)
    )
    
    plot(nba$obs, nba$UP, type="b", lwd=1, ylim=c(-22, 22), col="red", 
        xlab="Name", ylab="Change", main="My plot")
    

    Find the 10 highest and lowest values and use text to add the label:

    nups <- 10
    ups <- tail(nba[order(nba$UP), ], nups)
    with(ups, text(obs, UP+1, Name, srt=90, adj=0, cex=0.75))
    
    ndowns <- 10
    downs <- head(nba[order(nba$UP), ], nups)
    with(downs, text(obs, UP-1, Name, srt=90, adj=1, cex=0.75))
    

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

SELECT name FROM sys.databases -- this can list all database name in the server
I'm struggling with a deployment issue which leaves me completely lost. It goes like
Ok so here goes. I don't know if I'm over complicating things or if
I've got a thread that goes out and looks up data on our (old)
LOTS of Default.png Q's, but I didn't read one like this: I see Default.png,
Here is code in jsfiddle ! Here is the actual site ! Problem 1:
Name of the option tells something but what Visual Studio/compiler really do and what
Name the design considerations in deciding between use of a singleton versus a static
Name: <%= Html.TextBox(txtName, 20, new { @class = hello }) %> I want that
The name of a temporary table such as #t1 can be determined using select

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.